{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-31130","id":"CVE-2025-31130","title":"gitoxide does not detect SHA-1 collision attacks","description":"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 brea","descriptionLong":"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.","published":"2025-04-04T14:41:56.355Z","updated":"2026-10-28T02:30:33.396383937Z","reserved":"2025-03-26T15:04:52.627Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["GitoxideLabs gitoxide"],"affectedProducts":[{"vendor":"GitoxideLabs","product":"gitoxide","defaultStatus":null,"versions":[{"version":"< 0.42.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"crates.io","name":"gix-features","purl":"pkg:cargo/gix-features","ranges":["<0.41.0",">=0.0.0-0 <0.41.0"],"fixed":["0.41.0"],"advisory":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","name":"gix-commitgraph","purl":"pkg:cargo/gix-commitgraph","ranges":["<0.27.0"],"fixed":["0.27.0"],"advisory":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","name":"gix-index","purl":"pkg:cargo/gix-index","ranges":["<0.39.0"],"fixed":["0.39.0"],"advisory":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","name":"gix-object","purl":"pkg:cargo/gix-object","ranges":["<0.48.0"],"fixed":["0.48.0"],"advisory":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","name":"gix-odb","purl":"pkg:cargo/gix-odb","ranges":["<0.68.0"],"fixed":["0.68.0"],"advisory":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","name":"gix-pack","purl":"pkg:cargo/gix-pack","ranges":["<0.58.0"],"fixed":["0.58.0"],"advisory":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","name":"gitoxide","purl":"pkg:cargo/gitoxide","ranges":["<0.42.0"],"fixed":["0.42.0"],"advisory":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","name":"gitoxide-core","purl":"pkg:cargo/gitoxide-core","ranges":["<0.46.0"],"fixed":["0.46.0"],"advisory":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","name":"gix","purl":"pkg:cargo/gix","ranges":["<0.71.0"],"fixed":["0.71.0"],"advisory":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","name":"gix-archive","purl":"pkg:cargo/gix-archive","ranges":["<0.20.0"],"fixed":["0.20.0"],"advisory":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","name":"gix-blame","purl":"pkg:cargo/gix-blame","ranges":["<0.1.0"],"fixed":["0.1.0"],"advisory":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","name":"gix-config","purl":"pkg:cargo/gix-config","ranges":["<0.44.0"],"fixed":["0.44.0"],"advisory":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","name":"gix-diff","purl":"pkg:cargo/gix-diff","ranges":["<0.51.0"],"fixed":["0.51.0"],"advisory":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","name":"gix-dir","purl":"pkg:cargo/gix-dir","ranges":["<0.13.0"],"fixed":["0.13.0"],"advisory":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","name":"gix-discover","purl":"pkg:cargo/gix-discover","ranges":["<0.39.0"],"fixed":["0.39.0"],"advisory":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","name":"gix-filter","purl":"pkg:cargo/gix-filter","ranges":["<0.18.0"],"fixed":["0.18.0"],"advisory":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","name":"gix-fsck","purl":"pkg:cargo/gix-fsck","ranges":["<0.10.0"],"fixed":["0.10.0"],"advisory":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","name":"gix-merge","purl":"pkg:cargo/gix-merge","ranges":["<0.4.0"],"fixed":["0.4.0"],"advisory":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","name":"gix-negotiate","purl":"pkg:cargo/gix-negotiate","ranges":["<0.19.0"],"fixed":["0.19.0"],"advisory":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","name":"gix-protocol","purl":"pkg:cargo/gix-protocol","ranges":["<0.49.0"],"fixed":["0.49.0"],"advisory":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","name":"gix-ref","purl":"pkg:cargo/gix-ref","ranges":["<0.51.0"],"fixed":["0.51.0"],"advisory":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","name":"gix-revision","purl":"pkg:cargo/gix-revision","ranges":["<0.33.0"],"fixed":["0.33.0"],"advisory":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","name":"gix-revwalk","purl":"pkg:cargo/gix-revwalk","ranges":["<0.19.0"],"fixed":["0.19.0"],"advisory":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","name":"gix-status","purl":"pkg:cargo/gix-status","ranges":["<0.18.0"],"fixed":["0.18.0"],"advisory":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","name":"gix-traverse","purl":"pkg:cargo/gix-traverse","ranges":["<0.45.0"],"fixed":["0.45.0"],"advisory":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","name":"gix-worktree","purl":"pkg:cargo/gix-worktree","ranges":["<0.40.0"],"fixed":["0.40.0"],"advisory":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","name":"gix-worktree-state","purl":"pkg:cargo/gix-worktree-state","ranges":["<0.18.0"],"fixed":["0.18.0"],"advisory":"GHSA-2frx-2596-x5r6"}],"cwes":["CWE-328"],"aliases":["GHSA-2frx-2596-x5r6","RUSTSEC-2025-0021"],"references":[{"url":"https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-2frx-2596-x5r6","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/GitoxideLabs/gitoxide/commit/f253f02a6658b3b7612a50d56c71f5ae4da4ca21","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/31xxx/CVE-2025-31130.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-31130","tags":["advisory","web"]},{"url":"https://github.com/GitoxideLabs/gitoxide","tags":["package"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2025-0021.html","tags":["web","advisory"]},{"url":"https://crates.io/crates/gix-features","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00261,"epssPercentile":0.18147,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-31130","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-31130","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-31130","ok":true,"note":"27 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-2frx-2596-x5r6","ok":true,"note":"GHSA-2frx-2596-x5r6"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-31130","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}