CVE-2025-31130: gitoxidelabs gitoxide Use of Weak Hash
Vulnerability summary
CVE-2025-31130 is a medium (CVSS 6.8) Use of Weak Hash vulnerability in gitoxidelabs gitoxide. EPSS estimates a 0.26% chance of exploitation in the next 30 days, higher than 16.1% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 2 · Related 3Timeline
- 04-04-2025PublishedVulnerability first disclosed.
- 23-01-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated6.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N
- OSV · DebianEcosystem advisory · calculated6.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N
- OSV · WolfiEcosystem advisory · calculated6.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N
- OSV · ChainguardEcosystem advisory · calculated6.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N
- OSV · Crates.ioEcosystem advisory · calculated6.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N
- NVDNIST6.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N
EPSS trend
Probability
0.26%
Chance of exploitation in the next 30 days
Percentile
16%
Versus all other CVEs
30-day change
+0.01 pp
From 0.25% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Crates.Io27 products
- gitoxide< 0.42.0
- gitoxide-core< 0.46.0
- gix< 0.71.0
- gix-archive< 0.20.0
- gix-blame< 0.1.0
Chainguard4 products
- cargo-audit< 0.22.0-r0
- cargo-c< 0.10.23-r1
- helix< 25.01.1-r1
- starship< 1.24.0-r0
Wolfi4 products
- cargo-audit< 0.22.0-r0
- cargo-c< 0.10.23-r1
- helix< 25.01.1-r1
- starship< 1.24.0-r0
Debian1 product
- rust-gix-features< 0.39.1-2
Gitoxidelabs1 product
- gitoxide< 0.42.0
Ubuntu1 product
- rust-gix-featuresAll versions (No fix recorded)
6 vendors · 38 products
References
12 links- github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-2frx-2596-x5r6X Refsource CONFIRMREPORTAdvisoryWEB
- github.com/GitoxideLabs/gitoxide/commit/f253f02a6658b3b7612a50d56c71f5ae4da4ca21X Refsource MISCFIXWEB