{"id":"CVE-2025-31130","summary":"gitoxide does not detect SHA-1 collision attacks","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.","aliases":["GHSA-2frx-2596-x5r6","RUSTSEC-2025-0021"],"modified":"2026-11-11T10:47:28.707528008Z","published":"2025-04-04T14:41:56.355Z","related":["openSUSE-SU-2025:14994-1","openSUSE-SU-2026:21558-1"],"database_specific":{"cwe_ids":["CWE-328"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/31xxx/CVE-2025-31130.json","cna_assigner":"GitHub_M"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/31xxx/CVE-2025-31130.json"},{"type":"ADVISORY","url":"https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-2frx-2596-x5r6"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-31130"},{"type":"FIX","url":"https://github.com/GitoxideLabs/gitoxide/commit/f253f02a6658b3b7612a50d56c71f5ae4da4ca21"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/gitoxidelabs/gitoxide","events":[{"introduced":"0"},{"fixed":"d248e3d87d45ca3983cb9fd7c6143dacbd8301cc"},{"fixed":"f253f02a6658b3b7612a50d56c71f5ae4da4ca21"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"0.42.0"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"range":[{"fixed":"f253f02a6658b3b7612a50d56c71f5ae4da4ca21"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["v0.37.0","v0.36.0","v0.35.0","v0.34.0","v0.33.0","v0.31.1","v0.31.0","v0.30.0","v0.28.0","cargo-smart-release-v0.20.0","v0.27.0","TEST-0.0.0","v0.26.0","v0.25.0","cargo-smart-release-v0.19.0","cargo-smart-release-v0.18.0","v0.24.0","v0.23.0","cargo-smart-release-v0.17.0","v0.22.1","cargo-smart-release-v0.16.1","v0.22.0","cargo-smart-release-v0.16.0","v0.21.0","cargo-smart-release-v0.15.0","v0.20.0","v0.19.0","v0.18.0","cargo-smart-release-v0.14.0","v0.17.0","cargo-smart-release-v0.13.0","cargo-smart-release-v0.12.1","cargo-smart-release-v0.12.0","v0.14.0","v0.13.0","cargo-smart-release-v0.10.2","cargo-smart-release-v0.10.1","cargo-smart-release-v0.10.0","v0.12.0","v0.11.0","cargo-smart-release-v0.9.0","cargo-smart-release-v0.8.0","cargo-smart-release-v0.7.0","cargo-smart-release-v0.6.0","cargo-smart-release-v0.5.6","cargo-smart-release-v0.5.5","cargo-smart-release-v0.5.4","cargo-smart-release-v0.5.3","v0.10.0","cargo-smart-release-v0.5.2","cargo-smart-release-v0.5.1","cargo-smart-release-v0.5.0","v0.9.0","cargo-smart-release-v0.4.0","v0.8.4","cargo-smart-release-v0.3.1","v0.8.3","cargo-smart-release-v0.3.0","v0.8.2","cargo-smart-release-v0.2.4","cargo-smart-release-v0.2.3","cargo-smart-release-v0.2.2","v0.8.1","gitoxide-v0.8.1","gitoxide-v0.8.0","cargo-smart-release-v0.2.1","cargo-smart-release-v0.2.0","cargo-smart-release-v0.1.0","v0.7.0","end-2020","v0.6.0","v0.5.0","v0.4.0","v0.3.0","v0.1.0","the-beginning-2020"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-31130.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N"}]}