# CVE-2025-31130: gitoxide does not detect SHA-1 collision attacks

- Severity: Medium 6.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-04-03T12:00:00.000Z
- Modified: 2026-11-09T11:00:02.587Z
- Also known as: GHSA-2frx-2596-x5r6, RUSTSEC-2025-0021
- Weaknesses: CWE-328
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- GitoxideLabs gitoxide: < 0.42.0
- gix-features (crates.io): before 0.41.0; from 0.0.0-0 before 0.41.0
- gix-commitgraph (crates.io): before 0.27.0
- gix-index (crates.io): before 0.39.0
- gix-object (crates.io): before 0.48.0
- gix-odb (crates.io): before 0.68.0
- gix-pack (crates.io): before 0.58.0
- gitoxide (crates.io): before 0.42.0
- gitoxide-core (crates.io): before 0.46.0
- gix (crates.io): before 0.71.0
- gix-archive (crates.io): before 0.20.0
- gix-blame (crates.io): before 0.1.0
- gix-config (crates.io): before 0.44.0
- gix-diff (crates.io): before 0.51.0
- gix-dir (crates.io): before 0.13.0
- gix-discover (crates.io): before 0.39.0
- gix-filter (crates.io): before 0.18.0
- gix-fsck (crates.io): before 0.10.0
- gix-merge (crates.io): before 0.4.0
- gix-negotiate (crates.io): before 0.19.0
- gix-protocol (crates.io): before 0.49.0
- gix-ref (crates.io): before 0.51.0
- gix-revision (crates.io): before 0.33.0
- gix-revwalk (crates.io): before 0.19.0
- gix-status (crates.io): before 0.18.0
- gix-traverse (crates.io): before 0.45.0
- gix-worktree (crates.io): before 0.40.0
- gix-worktree-state (crates.io): before 0.18.0

## Every score

- GitHub_M: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N`
- GitHub: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N`
- RustSec Advisory Database: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N`

## References

- <https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-2frx-2596-x5r6> (exploit, web)
- <https://github.com/GitoxideLabs/gitoxide/commit/f253f02a6658b3b7612a50d56c71f5ae4da4ca21> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-31130> (advisory, web)
- <https://github.com/GitoxideLabs/gitoxide> (package)
- <https://rustsec.org/advisories/RUSTSEC-2025-0021.html> (advisory, web)
- <https://crates.io/crates/gix-features> (package)

## Sources

- CVE List: [CVE-2025-31130](https://www.cve.org/CVERecord?id=CVE-2025-31130), CVE Terms of Use, modified 2026-01-23
- GitHub Advisory Database: [GHSA-2frx-2596-x5r6](https://github.com/advisories/GHSA-2frx-2596-x5r6), CC-BY-4.0, modified 2026-09-10
- RustSec Advisory Database: [RUSTSEC-2025-0021](https://rustsec.org/advisories/RUSTSEC-2025-0021.html), CC0-1.0, modified 2026-11-09
- NVD: [CVE-2025-31130](https://nvd.nist.gov/vuln/detail/CVE-2025-31130), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-31130 · Whole record: https://cve.day/CVE-2025-31130.json · Rebuilt by cve.day 2026-11-25T22:58:56.056Z
