CVE-2025-31130gitoxide 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.
What to do
Fixed builds are available from Debian, crates.io: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | rust-gix-features | Fix pending | UBUNTU-CVE-2025-31130 | |
| Ubuntu 26.04 | rust-gix-features | Under investigation | UBUNTU-CVE-2025-31130 | |
| Ubuntu 25.10 | rust-gix-features | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-31130 | |
| Ubuntu 24.04 | rust-gix-features | Under investigation | UBUNTU-CVE-2025-31130 | |
| Debian 14 | rust-gix-features | Fixed | 0.39.1-2 | DEBIAN-CVE-2025-31130 |
| Debian 13 | rust-gix-features | Fixed | 0.39.1-2 | DEBIAN-CVE-2025-31130 |
| crates.io library | gitoxide | Fixed | 0.42.0 | GHSA-2frx-2596-x5r6 |
| crates.io library | gitoxide-core | Fixed | 0.46.0 | GHSA-2frx-2596-x5r6 |
| crates.io library | gix | Fixed | 0.71.0 | GHSA-2frx-2596-x5r6 |
| crates.io library | gix-archive | Fixed | 0.20.0 | GHSA-2frx-2596-x5r6 |
| crates.io library | gix-blame | Fixed | 0.1.0 | GHSA-2frx-2596-x5r6 |
| crates.io library | gix-commitgraph | Fixed | 0.27.0 | GHSA-2frx-2596-x5r6 |
| crates.io library | gix-config | Fixed | 0.44.0 | GHSA-2frx-2596-x5r6 |
| crates.io library | gix-diff | Fixed | 0.51.0 | GHSA-2frx-2596-x5r6 |
| crates.io library | gix-dir | Fixed | 0.13.0 | GHSA-2frx-2596-x5r6 |
| crates.io library | gix-discover | Fixed | 0.39.0 | GHSA-2frx-2596-x5r6 |
| crates.io library | gix-features | Fixed | 0.41.0 | GHSA-2frx-2596-x5r6 |
| crates.io library | gix-filter | Fixed | 0.18.0 | GHSA-2frx-2596-x5r6 |
| crates.io library | gix-fsck | Fixed | 0.10.0 | GHSA-2frx-2596-x5r6 |
| crates.io library | gix-index | Fixed | 0.39.0 | GHSA-2frx-2596-x5r6 |
| crates.io library | gix-merge | Fixed | 0.4.0 | GHSA-2frx-2596-x5r6 |
| crates.io library | gix-negotiate | Fixed | 0.19.0 | GHSA-2frx-2596-x5r6 |
| crates.io library | gix-object | Fixed | 0.48.0 | GHSA-2frx-2596-x5r6 |
| crates.io library | gix-odb | Fixed | 0.68.0 | GHSA-2frx-2596-x5r6 |
| crates.io library | gix-pack | Fixed | 0.58.0 | GHSA-2frx-2596-x5r6 |
| crates.io library | gix-protocol | Fixed | 0.49.0 | GHSA-2frx-2596-x5r6 |
| crates.io library | gix-ref | Fixed | 0.51.0 | GHSA-2frx-2596-x5r6 |
| crates.io library | gix-revision | Fixed | 0.33.0 | GHSA-2frx-2596-x5r6 |
| crates.io library | gix-revwalk | Fixed | 0.19.0 | GHSA-2frx-2596-x5r6 |
| crates.io library | gix-status | Fixed | 0.18.0 | GHSA-2frx-2596-x5r6 |
| crates.io library | gix-traverse | Fixed | 0.45.0 | GHSA-2frx-2596-x5r6 |
| crates.io library | gix-worktree | Fixed | 0.40.0 | GHSA-2frx-2596-x5r6 |
| crates.io library | gix-worktree-state | Fixed | 0.18.0 | GHSA-2frx-2596-x5r6 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- GitoxideLabs gitoxide: affected: < 0.42.0
References
- https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-2frx-2596-x5r6
- https://github.com/GitoxideLabs/gitoxide/commit/f253f02a6658b3b7612a50d56c71f5ae4da4ca21
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.