cve.bz

CVE-2025-31130 gitoxidelabs gitoxide: Use of Weak Hash

6.8 mediumEPSS 0.3%Fix available

Medium (6.8) in gitoxidelabs gitoxide. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in gix-features 0.41.0.

On this page
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.

Severity

CVSS 3.1

6.8 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 21st percentile. Scored 2026-11-25. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2025-04-04. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-328 Use of Weak Hash
OWASP Top 10
A04:2025 Cryptographic Failures
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • gix-features (crates.io): fixed in 0.41.0
  • gix-commitgraph (crates.io): fixed in 0.27.0
  • gix-index (crates.io): fixed in 0.39.0
  • gix-object (crates.io): fixed in 0.48.0
  • gix-odb (crates.io): fixed in 0.68.0
  • gix-pack (crates.io): fixed in 0.58.0
  • gitoxide (crates.io): fixed in 0.42.0
  • gitoxide-core (crates.io): fixed in 0.46.0
  • Debian, openSUSE: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2025-31130 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-31130?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-31130?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-31130 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
GitoxideLabs gitoxide< 0.42.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-2frx-2596-x5r6crates.iogix-features<0.41.00.41.0
GHSA-2frx-2596-x5r6crates.iogix-commitgraph<0.27.00.27.0
GHSA-2frx-2596-x5r6crates.iogix-index<0.39.00.39.0
GHSA-2frx-2596-x5r6crates.iogix-object<0.48.00.48.0
GHSA-2frx-2596-x5r6crates.iogix-odb<0.68.00.68.0
GHSA-2frx-2596-x5r6crates.iogix-pack<0.58.00.58.0
GHSA-2frx-2596-x5r6crates.iogitoxide<0.42.00.42.0
GHSA-2frx-2596-x5r6crates.iogitoxide-core<0.46.00.46.0
GHSA-2frx-2596-x5r6crates.iogix<0.71.00.71.0
GHSA-2frx-2596-x5r6crates.iogix-archive<0.20.00.20.0
GHSA-2frx-2596-x5r6crates.iogix-blame<0.1.00.1.0
GHSA-2frx-2596-x5r6crates.iogix-config<0.44.00.44.0
GHSA-2frx-2596-x5r6crates.iogix-diff<0.51.00.51.0
GHSA-2frx-2596-x5r6crates.iogix-dir<0.13.00.13.0
GHSA-2frx-2596-x5r6crates.iogix-discover<0.39.00.39.0
GHSA-2frx-2596-x5r6crates.iogix-filter<0.18.00.18.0
GHSA-2frx-2596-x5r6crates.iogix-fsck<0.10.00.10.0
GHSA-2frx-2596-x5r6crates.iogix-merge<0.4.00.4.0
GHSA-2frx-2596-x5r6crates.iogix-negotiate<0.19.00.19.0
GHSA-2frx-2596-x5r6crates.iogix-protocol<0.49.00.49.0
GHSA-2frx-2596-x5r6crates.iogix-ref<0.51.00.51.0
GHSA-2frx-2596-x5r6crates.iogix-revision<0.33.00.33.0
GHSA-2frx-2596-x5r6crates.iogix-revwalk<0.19.00.19.0
GHSA-2frx-2596-x5r6crates.iogix-status<0.18.00.18.0
GHSA-2frx-2596-x5r6crates.iogix-traverse<0.45.00.45.0
GHSA-2frx-2596-x5r6crates.iogix-worktree<0.40.00.40.0
GHSA-2frx-2596-x5r6crates.iogix-worktree-state<0.18.00.18.0
RUSTSEC-2025-0021crates.iogix-features>=0.0.0-0 <0.41.00.41.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian13, 14rust-gix-features0.39.1-2DEBIAN-CVE-2025-31130
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 1 morerust-gix-featuresno fix listedUBUNTU-CVE-2025-31130
openSUSELeap 16.0gitoxide0.56.0-bp160.1.1openSUSE-SU-2026:21558-1
openSUSETumbleweedgitoxide0.42.0-1.1openSUSE-SU-2025:14994-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.

Attack patterns (CAPEC)

  • CAPEC-68 Subvert Code-signing Facilities Likelihood: Low · Severity: Very High
  • CAPEC-461 Web Services API Signature Forgery Leveraging Hash Function Extension Weakness Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON