CVEfocus › CVE database › CVE-2025-31130

CVE-2025-31130gitoxide does not detect SHA-1 collision attacks

CVSS 6.8 MediumEPSS 0.3% (higher than 21% of CVEs)Published 2025-04-04Updated 2026-01-23Assigner: GitHub_M

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.

CWE-328

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

29Fixed
1Fix pending
2Under investigation
1Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10rust-gix-featuresFix pendingUBUNTU-CVE-2025-31130
Ubuntu 26.04rust-gix-featuresUnder investigationUBUNTU-CVE-2025-31130
Ubuntu 25.10rust-gix-featuresWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-31130
Ubuntu 24.04rust-gix-featuresUnder investigationUBUNTU-CVE-2025-31130
Debian 14rust-gix-featuresFixed0.39.1-2DEBIAN-CVE-2025-31130
Debian 13rust-gix-featuresFixed0.39.1-2DEBIAN-CVE-2025-31130
crates.io librarygitoxideFixed0.42.0GHSA-2frx-2596-x5r6
crates.io librarygitoxide-coreFixed0.46.0GHSA-2frx-2596-x5r6
crates.io librarygixFixed0.71.0GHSA-2frx-2596-x5r6
crates.io librarygix-archiveFixed0.20.0GHSA-2frx-2596-x5r6
crates.io librarygix-blameFixed0.1.0GHSA-2frx-2596-x5r6
crates.io librarygix-commitgraphFixed0.27.0GHSA-2frx-2596-x5r6
crates.io librarygix-configFixed0.44.0GHSA-2frx-2596-x5r6
crates.io librarygix-diffFixed0.51.0GHSA-2frx-2596-x5r6
crates.io librarygix-dirFixed0.13.0GHSA-2frx-2596-x5r6
crates.io librarygix-discoverFixed0.39.0GHSA-2frx-2596-x5r6
crates.io librarygix-featuresFixed0.41.0GHSA-2frx-2596-x5r6
crates.io librarygix-filterFixed0.18.0GHSA-2frx-2596-x5r6
crates.io librarygix-fsckFixed0.10.0GHSA-2frx-2596-x5r6
crates.io librarygix-indexFixed0.39.0GHSA-2frx-2596-x5r6
crates.io librarygix-mergeFixed0.4.0GHSA-2frx-2596-x5r6
crates.io librarygix-negotiateFixed0.19.0GHSA-2frx-2596-x5r6
crates.io librarygix-objectFixed0.48.0GHSA-2frx-2596-x5r6
crates.io librarygix-odbFixed0.68.0GHSA-2frx-2596-x5r6
crates.io librarygix-packFixed0.58.0GHSA-2frx-2596-x5r6
crates.io librarygix-protocolFixed0.49.0GHSA-2frx-2596-x5r6
crates.io librarygix-refFixed0.51.0GHSA-2frx-2596-x5r6
crates.io librarygix-revisionFixed0.33.0GHSA-2frx-2596-x5r6
crates.io librarygix-revwalkFixed0.19.0GHSA-2frx-2596-x5r6
crates.io librarygix-statusFixed0.18.0GHSA-2frx-2596-x5r6
crates.io librarygix-traverseFixed0.45.0GHSA-2frx-2596-x5r6
crates.io librarygix-worktreeFixed0.40.0GHSA-2frx-2596-x5r6
crates.io librarygix-worktree-stateFixed0.18.0GHSA-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.

References

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.