{"cve":"CVE-2025-31130","nvd":{"published":"2025-04-04T15:15:48.320","modified":"2026-06-17T09:09:54.553","status":"Deferred","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 break the Git object model and integrity checks when used with gitoxide. This vulnerability is fixed in 0.42.0.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N","score":6.8},"cwes":["CWE-328"],"references":["https://github.com/GitoxideLabs/gitoxide/commit/f253f02a6658b3b7612a50d56c71f5ae4da4ca21","https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-2frx-2596-x5r6","https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-2frx-2596-x5r6"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:00:57.946988208+00:00"},"epss":{"cve":"CVE-2025-31130","score":0.00261,"percentile":0.17962,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-2frx-2596-x5r6","url":"https://osv.dev/vulnerability/GHSA-2frx-2596-x5r6","summary":"gitoxide does not detect SHA-1 collision attacks","modified":"2026-09-10T03:50:56.896644678Z","packages":[{"ecosystem":"crates.io","name":"gix-features","purl":"pkg:cargo/gix-features","ranges":["<0.41.0"],"fixed":["0.41.0"]},{"ecosystem":"crates.io","name":"gix-commitgraph","purl":"pkg:cargo/gix-commitgraph","ranges":["<0.27.0"],"fixed":["0.27.0"]},{"ecosystem":"crates.io","name":"gix-index","purl":"pkg:cargo/gix-index","ranges":["<0.39.0"],"fixed":["0.39.0"]},{"ecosystem":"crates.io","name":"gix-object","purl":"pkg:cargo/gix-object","ranges":["<0.48.0"],"fixed":["0.48.0"]},{"ecosystem":"crates.io","name":"gix-odb","purl":"pkg:cargo/gix-odb","ranges":["<0.68.0"],"fixed":["0.68.0"]},{"ecosystem":"crates.io","name":"gix-pack","purl":"pkg:cargo/gix-pack","ranges":["<0.58.0"],"fixed":["0.58.0"]},{"ecosystem":"crates.io","name":"gitoxide","purl":"pkg:cargo/gitoxide","ranges":["<0.42.0"],"fixed":["0.42.0"]},{"ecosystem":"crates.io","name":"gitoxide-core","purl":"pkg:cargo/gitoxide-core","ranges":["<0.46.0"],"fixed":["0.46.0"]},{"ecosystem":"crates.io","name":"gix","purl":"pkg:cargo/gix","ranges":["<0.71.0"],"fixed":["0.71.0"]},{"ecosystem":"crates.io","name":"gix-archive","purl":"pkg:cargo/gix-archive","ranges":["<0.20.0"],"fixed":["0.20.0"]},{"ecosystem":"crates.io","name":"gix-blame","purl":"pkg:cargo/gix-blame","ranges":["<0.1.0"],"fixed":["0.1.0"]},{"ecosystem":"crates.io","name":"gix-config","purl":"pkg:cargo/gix-config","ranges":["<0.44.0"],"fixed":["0.44.0"]},{"ecosystem":"crates.io","name":"gix-diff","purl":"pkg:cargo/gix-diff","ranges":["<0.51.0"],"fixed":["0.51.0"]},{"ecosystem":"crates.io","name":"gix-dir","purl":"pkg:cargo/gix-dir","ranges":["<0.13.0"],"fixed":["0.13.0"]},{"ecosystem":"crates.io","name":"gix-discover","purl":"pkg:cargo/gix-discover","ranges":["<0.39.0"],"fixed":["0.39.0"]},{"ecosystem":"crates.io","name":"gix-filter","purl":"pkg:cargo/gix-filter","ranges":["<0.18.0"],"fixed":["0.18.0"]},{"ecosystem":"crates.io","name":"gix-fsck","purl":"pkg:cargo/gix-fsck","ranges":["<0.10.0"],"fixed":["0.10.0"]},{"ecosystem":"crates.io","name":"gix-merge","purl":"pkg:cargo/gix-merge","ranges":["<0.4.0"],"fixed":["0.4.0"]},{"ecosystem":"crates.io","name":"gix-negotiate","purl":"pkg:cargo/gix-negotiate","ranges":["<0.19.0"],"fixed":["0.19.0"]},{"ecosystem":"crates.io","name":"gix-protocol","purl":"pkg:cargo/gix-protocol","ranges":["<0.49.0"],"fixed":["0.49.0"]},{"ecosystem":"crates.io","name":"gix-ref","purl":"pkg:cargo/gix-ref","ranges":["<0.51.0"],"fixed":["0.51.0"]},{"ecosystem":"crates.io","name":"gix-revision","purl":"pkg:cargo/gix-revision","ranges":["<0.33.0"],"fixed":["0.33.0"]},{"ecosystem":"crates.io","name":"gix-revwalk","purl":"pkg:cargo/gix-revwalk","ranges":["<0.19.0"],"fixed":["0.19.0"]},{"ecosystem":"crates.io","name":"gix-status","purl":"pkg:cargo/gix-status","ranges":["<0.18.0"],"fixed":["0.18.0"]},{"ecosystem":"crates.io","name":"gix-traverse","purl":"pkg:cargo/gix-traverse","ranges":["<0.45.0"],"fixed":["0.45.0"]},{"ecosystem":"crates.io","name":"gix-worktree","purl":"pkg:cargo/gix-worktree","ranges":["<0.40.0"],"fixed":["0.40.0"]},{"ecosystem":"crates.io","name":"gix-worktree-state","purl":"pkg:cargo/gix-worktree-state","ranges":["<0.18.0"],"fixed":["0.18.0"]}]},{"id":"RUSTSEC-2025-0021","url":"https://osv.dev/vulnerability/RUSTSEC-2025-0021","summary":"SHA-1 collision attacks are not detected","modified":"2026-10-12T18:00:10.946699881Z","packages":[{"ecosystem":"crates.io","name":"gix-features","purl":"pkg:cargo/gix-features","ranges":[">=0.0.0-0 <0.41.0"],"fixed":["0.41.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}