{"id":"UBUNTU-CVE-2025-31130","details":"gitoxide is an implementation of git written in Rust. Before 0.42.0, gitoxide uses SHA-1 hash implementations without any collision detection, leaving it vulnerable to hash collision attacks. gitoxide uses the sha1_smol or sha1 crate, both of which implement standard SHA-1 without any mitigations for collision attacks. This means that two distinct Git objects with colliding SHA-1 hashes would break the Git object model and integrity checks when used with gitoxide. This vulnerability is fixed in 0.42.0.","modified":"2026-05-20T16:10:36.035805618Z","published":"2025-04-04T15:15:00Z","upstream":["CVE-2025-31130"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-31130"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-31130"},{"type":"REPORT","url":"https://rustsec.org/advisories/RUSTSEC-2025-0021.html"},{"type":"REPORT","url":"https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-2frx-2596-x5r6"},{"type":"REPORT","url":"https://github.com/GitoxideLabs/gitoxide/commit/4660f7a6f71873311f68f170b0f1f6659a02829d"}],"affected":[{"package":{"name":"rust-gix-features","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/rust-gix-features?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.36.0-1","0.36.0-2","0.36.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-gix-features-dev","binary_version":"0.36.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-31130.json"}},{"package":{"name":"rust-gix-features","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/rust-gix-features?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.39.1-1","0.39.1-2"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-gix-features-dev","binary_version":"0.39.1-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-31130.json"}},{"package":{"name":"rust-gix-features","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/rust-gix-features?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.39.1-2","0.43.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-gix-features-dev","binary_version":"0.43.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-31130.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N"},{"type":"Ubuntu","score":"medium"}]}