Skip to main content
VulnerabilityPublished Updated

CVE-2025-31130: GitoxideLabs gitoxide · Use of Weak Hash

Affects GitoxideLabs gitoxideSource CVE Database V5

0

Not known to be exploited · CVSS 6.8 Medium : upgrade to 0.42.0 when convenient.

Data as of 26 Oct 2026, 14:05 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. Weaponised: 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 26 Oct 2026.

What to do

Upgrade github/GitoxideLabs/gitoxide to 0.42.0.

Affected software

ProductAffectedFixed in
crates.iogithub/GitoxideLabs/gitoxidepkg:cargo/github/GitoxideLabs/gitoxideOther threatsAffected
  • <0.42.0
Fixed in
  • 0.42.0

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

AI-suggested

European organizations should immediately upgrade gitoxide to version 0.42.0 or later to remediate this vulnerability. Beyond patching, organizations should implement additional integrity verification mechanisms such as signing Git objects or commits using GPG or other cryptographic signatures to detect tampering. Regular audits of repositories for unusual or suspicious commits can help identify potential exploitation. Integrating continuous integration/continuous deployment (CI/CD) pipelines with integrity checks and automated alerts for hash anomalies can further reduce risk. For critical projects, consider using alternative Git implementations that have robust collision resistance or have transitioned away from SHA-1. Educate developers and DevOps teams about the risks of hash collisions and encourage best practices in repository management. Finally, monitor security advisories for any emerging exploits targeting this vulnerability.

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…