CVE-2025-31130
MEDIUM 6.8CVSS 3.1gitoxide does not detect SHA-1 collision attacks
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.
- Published
- 4 Apr 2025
- Last modified
- 9 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-328
- Also known as
- GHSA-2frx-2596-x5r6RUSTSEC-2025-0021
- Sources
- NVDJSONOSV GHSA-2frx-2596-x5r6JSONOSV RUSTSEC-2025-0021JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N |
| OSV | RustSec | CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | gix-features | < 0.41.0 | 0.41.0 |
| OSV | crates.io | gix-commitgraph | < 0.27.0 | 0.27.0 |
| OSV | crates.io | gix-index | < 0.39.0 | 0.39.0 |
| OSV | crates.io | gix-object | < 0.48.0 | 0.48.0 |
| OSV | crates.io | gix-odb | < 0.68.0 | 0.68.0 |
| OSV | crates.io | gix-pack | < 0.58.0 | 0.58.0 |
| OSV | crates.io | gitoxide | < 0.42.0 | 0.42.0 |
| OSV | crates.io | gitoxide-core | < 0.46.0 | 0.46.0 |
| OSV | crates.io | gix | < 0.71.0 | 0.71.0 |
| OSV | crates.io | gix-archive | < 0.20.0 | 0.20.0 |
| OSV | crates.io | gix-blame | < 0.1.0 | 0.1.0 |
| OSV | crates.io | gix-config | < 0.44.0 | 0.44.0 |
| OSV | crates.io | gix-diff | < 0.51.0 | 0.51.0 |
| OSV | crates.io | gix-dir | < 0.13.0 | 0.13.0 |
| OSV | crates.io | gix-discover | < 0.39.0 | 0.39.0 |
| OSV | crates.io | gix-filter | < 0.18.0 | 0.18.0 |
| OSV | crates.io | gix-fsck | < 0.10.0 | 0.10.0 |
| OSV | crates.io | gix-merge | < 0.4.0 | 0.4.0 |
| OSV | crates.io | gix-negotiate | < 0.19.0 | 0.19.0 |
| OSV | crates.io | gix-protocol | < 0.49.0 | 0.49.0 |
| OSV | crates.io | gix-ref | < 0.51.0 | 0.51.0 |
| OSV | crates.io | gix-revision | < 0.33.0 | 0.33.0 |
| OSV | crates.io | gix-revwalk | < 0.19.0 | 0.19.0 |
| OSV | crates.io | gix-status | < 0.18.0 | 0.18.0 |
| OSV | crates.io | gix-traverse | < 0.45.0 | 0.45.0 |
| OSV | crates.io | gix-worktree | < 0.40.0 | 0.40.0 |
| OSV | crates.io | gix-worktree-state | < 0.18.0 | 0.18.0 |
| OSV | crates.io | gix-features | >= 0.0.0-0, < 0.41.0 | 0.41.0 |
References
- https://github.com/GitoxideLabs/gitoxide/commit/f253f02a6658b3b7612a50d56c71f5ae4da4ca21 · WEB
- https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-2frx-2596-x5r6 · 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 · WEB, ADVISORY
- https://crates.io/crates/gix-features · PACKAGE
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 4 Apr 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 3 Apr 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 4 Apr 2025)