CVE-2025-31130
Fixed in a distro release EPSS <1%CVSS 6.8
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.
Products: GitoxideLabs gitoxide
Fixed upstream
| Ecosystem | Package | Fixed in |
|---|---|---|
| crates.io | gitoxide | 0.42.0 |
| crates.io | gitoxide-core | 0.46.0 |
| crates.io | gix | 0.71.0 |
| crates.io | gix-archive | 0.20.0 |
| crates.io | gix-blame | 0.1.0 |
| crates.io | gix-commitgraph | 0.27.0 |
| crates.io | gix-config | 0.44.0 |
| crates.io | gix-diff | 0.51.0 |
| crates.io | gix-dir | 0.13.0 |
| crates.io | gix-discover | 0.39.0 |
| crates.io | gix-features | 0.41.0 |
| crates.io | gix-filter | 0.18.0 |
| crates.io | gix-fsck | 0.10.0 |
| crates.io | gix-index | 0.39.0 |
| crates.io | gix-merge | 0.4.0 |
| crates.io | gix-negotiate | 0.19.0 |
| crates.io | gix-object | 0.48.0 |
| crates.io | gix-odb | 0.68.0 |
| crates.io | gix-pack | 0.58.0 |
| crates.io | gix-protocol | 0.49.0 |
| crates.io | gix-ref | 0.51.0 |
| crates.io | gix-revision | 0.33.0 |
| crates.io | gix-revwalk | 0.19.0 |
| crates.io | gix-status | 0.18.0 |
| crates.io | gix-traverse | 0.45.0 |
| crates.io | gix-worktree | 0.40.0 |
| crates.io | gix-worktree-state | 0.18.0 |
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Chainguard | cargo-audit | 0.22.0-r0 |
| Chainguard | cargo-c | 0.10.23-r1 |
| Chainguard | helix | 25.01.1-r1 |
| Chainguard | starship | 1.24.0-r0 |
| Debian 13 | rust-gix-features | 0.39.1-2 |
| Debian 14 | rust-gix-features | 0.39.1-2 |
| Ubuntu 24.04 LTS | rust-gix-features | no fix |
| Ubuntu 25.10 | rust-gix-features | no fix |
| Ubuntu 26.04 LTS | rust-gix-features | no fix |
| Ubuntu 26.10 | rust-gix-features | no fix |
| Wolfi | cargo-audit | 0.22.0-r0 |
| Wolfi | cargo-c | 0.10.23-r1 |
| Wolfi | helix | 25.01.1-r1 |
| Wolfi | starship | 1.24.0-r0 |
| openSUSE Leap 16.0 | gitoxide | 0.56.0-bp160.1.1 |
| openSUSE Tumbleweed | gitoxide | 0.42.0-1.1 |