{"id":"CVE-2025-31130","state":"PUBLISHED","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 break the Git object model and integrity checks when used with gitoxide. This vulnerability is fixed in 0.42.0.","publishedAt":"2025-04-04T14:41:56.355Z","updatedAt":"2026-01-23T17:08:57.443Z","severity":{"score":6.8,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["GitoxideLabs gitoxide"],"affected":[{"vendor":"GitoxideLabs","product":"gitoxide","versions":[{"version":"< 0.42.0","status":"affected"}]}],"references":["https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-2frx-2596-x5r6","https://github.com/GitoxideLabs/gitoxide/commit/f253f02a6658b3b7612a50d56c71f5ae4da4ca21"],"weaknesses":["CWE-328"],"ingestedAt":"2026-10-29T20:08:55.257Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/31xxx/CVE-2025-31130.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-31130","state":"PUBLISHED","datePublished":"2025-04-04T14:41:56.355Z","dateUpdated":"2026-01-23T17:08:57.443Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2025-03-26T15:04:52.627Z"},"containers":{"cna":{"title":"gitoxide does not detect SHA-1 collision attacks","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"GitoxideLabs","product":"gitoxide","versions":[{"version":"< 0.42.0","status":"affected"}]}],"references":[{"url":"https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-2frx-2596-x5r6","name":"https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-2frx-2596-x5r6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/GitoxideLabs/gitoxide/commit/f253f02a6658b3b7612a50d56c71f5ae4da4ca21","name":"https://github.com/GitoxideLabs/gitoxide/commit/f253f02a6658b3b7612a50d56c71f5ae4da4ca21","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.8,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-328","lang":"en","description":"CWE-328: Use of Weak Hash","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-01-23T17:08:57.443Z"},"source":{"advisory":"GHSA-2frx-2596-x5r6","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-2frx-2596-x5r6","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-04-04T14:51:46.167954Z","id":"CVE-2025-31130","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-04-04T14:51:51.207Z"}}]}}}