CVE-2025-31130GitoxideLabs gitoxide
Medium 6.8 No auth needed
Follow: this CVE · GitoxideLabs · GitoxideLabs gitoxide We alert you by email or Slack (account required).
- Priority
- 56
- CVSS 3.1
- 6.8
- EPSS
- —
- Auth required
- No
- Published
- Apr 4, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-328
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N
What happens
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
- Apply the vendor's security update for gitoxide.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| crates.io | gitoxide |
< 0.42.0 |
0.42.0 |
cargo update -p gitoxide --precise 0.42.0 |
| crates.io | gitoxide-core |
< 0.46.0 |
0.46.0 |
cargo update -p gitoxide-core --precise 0.46.0 |
| crates.io | gix |
< 0.71.0 |
0.71.0 |
cargo update -p gix --precise 0.71.0 |
| crates.io | gix-archive |
< 0.20.0 |
0.20.0 |
cargo update -p gix-archive --precise 0.20.0 |
| crates.io | gix-blame |
< 0.1.0 |
0.1.0 |
cargo update -p gix-blame --precise 0.1.0 |
| crates.io | gix-commitgraph |
< 0.27.0 |
0.27.0 |
cargo update -p gix-commitgraph --precise 0.27.0 |
| crates.io | gix-config |
< 0.44.0 |
0.44.0 |
cargo update -p gix-config --precise 0.44.0 |
| crates.io | gix-diff |
< 0.51.0 |
0.51.0 |
cargo update -p gix-diff --precise 0.51.0 |
| crates.io | gix-dir |
< 0.13.0 |
0.13.0 |
cargo update -p gix-dir --precise 0.13.0 |
| crates.io | gix-discover |
< 0.39.0 |
0.39.0 |
cargo update -p gix-discover --precise 0.39.0 |
| crates.io | gix-features |
< 0.41.0 |
0.41.0 |
cargo update -p gix-features --precise 0.41.0 |
| crates.io | gix-features |
≥ 0.0.0-0 < 0.41.0 |
0.41.0 |
cargo update -p gix-features --precise 0.41.0 |
| crates.io | gix-filter |
< 0.18.0 |
0.18.0 |
cargo update -p gix-filter --precise 0.18.0 |
| crates.io | gix-fsck |
< 0.10.0 |
0.10.0 |
cargo update -p gix-fsck --precise 0.10.0 |
| crates.io | gix-index |
< 0.39.0 |
0.39.0 |
cargo update -p gix-index --precise 0.39.0 |
| crates.io | gix-merge |
< 0.4.0 |
0.4.0 |
cargo update -p gix-merge --precise 0.4.0 |
| crates.io | gix-negotiate |
< 0.19.0 |
0.19.0 |
cargo update -p gix-negotiate --precise 0.19.0 |
| crates.io | gix-object |
< 0.48.0 |
0.48.0 |
cargo update -p gix-object --precise 0.48.0 |
| crates.io | gix-odb |
< 0.68.0 |
0.68.0 |
cargo update -p gix-odb --precise 0.68.0 |
| crates.io | gix-pack |
< 0.58.0 |
0.58.0 |
cargo update -p gix-pack --precise 0.58.0 |
| crates.io | gix-protocol |
< 0.49.0 |
0.49.0 |
cargo update -p gix-protocol --precise 0.49.0 |
| crates.io | gix-ref |
< 0.51.0 |
0.51.0 |
cargo update -p gix-ref --precise 0.51.0 |
| crates.io | gix-revision |
< 0.33.0 |
0.33.0 |
cargo update -p gix-revision --precise 0.33.0 |
| crates.io | gix-revwalk |
< 0.19.0 |
0.19.0 |
cargo update -p gix-revwalk --precise 0.19.0 |
| crates.io | gix-status |
< 0.18.0 |
0.18.0 |
cargo update -p gix-status --precise 0.18.0 |
| crates.io | gix-traverse |
< 0.45.0 |
0.45.0 |
cargo update -p gix-traverse --precise 0.45.0 |
| crates.io | gix-worktree |
< 0.40.0 |
0.40.0 |
cargo update -p gix-worktree --precise 0.40.0 |
| crates.io | gix-worktree-state |
< 0.18.0 |
0.18.0 |
cargo update -p gix-worktree-state --precise 0.18.0 |
Per OSV / GitHub Advisories (GHSA-2frx-2596-x5r6, RUSTSEC-2025-0021). Check the version in your lockfile before upgrading.
Affected products
- GitoxideLabs · gitoxide
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- Security update for gitoxide · SUSE · openSUSE-SU-2026:21558-1 · Aug 10, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.