Skip to main content
VulnerabilityPublished Updated

CVE-2025-31130: Rust gix features · Before 0.42.0, gitoxide uses SHA-1 hash implementations without any collision

Affects rust-gix-featuresSource GCVE Database

0
Compare
Authoritative record:CVE-2025-31130· Medium 6.8

Not known to be exploited · CVSS 6.8 Medium · fixed in 0.42.0 : update rust-gix-features when convenient.

Data as of 24 Nov 2026, 21:15 UTC

CVSS 3.1 base score
6.8Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 17% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.42.0
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 4 Apr 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10rust-gix-featurespkg:deb/ubuntu/rust-gix-features?arch=source&distro=stonkingOther threatsAffected
  • =0.43.1-1
  • =0.48.0-1
Fixed in–
Ubuntu 26.04 LTSrust-gix-featurespkg:deb/ubuntu/rust-gix-features?arch=source&distro=resoluteOther threatsAffected
  • =0.39.1-2
  • =0.43.1-1
Fixed in–
Ubuntu 25.10rust-gix-featurespkg:deb/ubuntu/rust-gix-features?arch=source&distro=questingOther threatsAffected
  • =0.39.1-1
  • =0.39.1-2
Fixed in–
Ubuntu 24.04 LTSrust-gix-featurespkg:deb/ubuntu/rust-gix-features?arch=source&distro=nobleOther threatsAffected
  • =0.36.0-1
  • =0.36.0-2
  • =0.36.1-1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…