{"id":"CVE-2025-31130","published":"2025-04-04T14:41:56Z","modified":"2026-01-23T17:08:57Z","title":"gitoxide does not detect SHA-1 collision attacks","vendor":"GitoxideLabs","product":"gitoxide","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00346,"percentile":0.20564,"provenance":"source"},"cwes":[{"id":"CWE-328","name":"Use of Weak Hash"}],"references":[{"url":"https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-2frx-2596-x5r6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/GitoxideLabs/gitoxide/commit/f253f02a6658b3b7612a50d56c71f5ae4da4ca21","tags":["x_refsource_MISC"]}],"priority":{"score":8.9,"factors":[{"name":"EPSS percentile","points":4.11},{"name":"CVSS severity","points":4.76}]},"vendorSlug":"gitoxidelabs","affectedVersions":[{"vendor":"GitoxideLabs","product":"gitoxide","versions":["< 0.42.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-04T14:51:46.167954Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"gix-features","vulnerableRanges":["<0.41.0",">=0.0.0-0, <0.41.0"],"patched":["0.41.0"],"from":["GHSA-2frx-2596-x5r6","RUSTSEC-2025-0021"],"provenance":"source"},{"ecosystem":"crates.io","package":"gix-commitgraph","vulnerableRanges":["<0.27.0"],"patched":["0.27.0"],"from":["GHSA-2frx-2596-x5r6"],"provenance":"source"},{"ecosystem":"crates.io","package":"gix-index","vulnerableRanges":["<0.39.0"],"patched":["0.39.0"],"from":["GHSA-2frx-2596-x5r6"],"provenance":"source"},{"ecosystem":"crates.io","package":"gix-object","vulnerableRanges":["<0.48.0"],"patched":["0.48.0"],"from":["GHSA-2frx-2596-x5r6"],"provenance":"source"},{"ecosystem":"crates.io","package":"gix-odb","vulnerableRanges":["<0.68.0"],"patched":["0.68.0"],"from":["GHSA-2frx-2596-x5r6"],"provenance":"source"},{"ecosystem":"crates.io","package":"gix-pack","vulnerableRanges":["<0.58.0"],"patched":["0.58.0"],"from":["GHSA-2frx-2596-x5r6"],"provenance":"source"},{"ecosystem":"crates.io","package":"gitoxide","vulnerableRanges":["<0.42.0"],"patched":["0.42.0"],"from":["GHSA-2frx-2596-x5r6"],"provenance":"source"},{"ecosystem":"crates.io","package":"gitoxide-core","vulnerableRanges":["<0.46.0"],"patched":["0.46.0"],"from":["GHSA-2frx-2596-x5r6"],"provenance":"source"},{"ecosystem":"crates.io","package":"gix","vulnerableRanges":["<0.71.0"],"patched":["0.71.0"],"from":["GHSA-2frx-2596-x5r6"],"provenance":"source"},{"ecosystem":"crates.io","package":"gix-archive","vulnerableRanges":["<0.20.0"],"patched":["0.20.0"],"from":["GHSA-2frx-2596-x5r6"],"provenance":"source"}],"summary":{"text":"gitoxide, a Rust implementation of git, computes SHA-1 object hashes without collision detection (the sha1_smol and sha1 crates provide no collision-attack mitigations) in versions before 0.42.0. An attacker able to produce two distinct Git objects with colliding SHA-1 hashes could break the Git object model and its integrity checks when such objects are processed by gitoxide, with the attack requiring network access and no privileges, but high attack complexity.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:10:42Z"},"euvd":{"id":"EUVD-2025-9751","exploited":false,"provenance":"source"}}