Vulnerabilities

CVE-2025-31130

Medium 6.8 CVSS 3.1

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.

Description as published by the source, in English.

Key facts

Published
2025-04-04
Last modified
2026-06-17
Assigned by
security-advisories@github.com
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N
Scored by
security-advisories@github.com
Probability of exploitation
0.2 % higher than 15 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Not registered in the sources

Affected products

Vendor Product Versions Status
gitoxide (crates.io) < 0.42.0 Affected
gitoxide-core (crates.io) < 0.46.0 Affected
gix (crates.io) < 0.71.0 Affected
gix-archive (crates.io) < 0.20.0 Affected
gix-blame (crates.io) < 0.1.0 Affected
gix-commitgraph (crates.io) < 0.27.0 Affected
gix-config (crates.io) < 0.44.0 Affected
gix-diff (crates.io) < 0.51.0 Affected
gix-dir (crates.io) < 0.13.0 Affected
gix-discover (crates.io) < 0.39.0 Affected
gix-features (crates.io) < 0.41.0 Affected
gix-filter (crates.io) < 0.18.0 Affected
gix-fsck (crates.io) < 0.10.0 Affected
gix-index (crates.io) < 0.39.0 Affected
gix-merge (crates.io) < 0.4.0 Affected
gix-negotiate (crates.io) < 0.19.0 Affected
gix-object (crates.io) < 0.48.0 Affected
gix-odb (crates.io) < 0.68.0 Affected
gix-pack (crates.io) < 0.58.0 Affected
gix-protocol (crates.io) < 0.49.0 Affected
gix-ref (crates.io) < 0.51.0 Affected
gix-revision (crates.io) < 0.33.0 Affected
gix-revwalk (crates.io) < 0.19.0 Affected
gix-status (crates.io) < 0.18.0 Affected
gix-traverse (crates.io) < 0.45.0 Affected
gix-worktree (crates.io) < 0.40.0 Affected
gix-worktree-state (crates.io) < 0.18.0 Affected

Weakness type

  • CWE-328: Use of Weak Hash

    The product uses an algorithm that produces a digest (output value) that does not meet security expectations for a hash function that allows an adversary to reasonably determine the original input (preimage attack), fin…

Attack techniques

Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.

  • T1553.002: Code Signing defense-impairment

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities