VDB

CVE-2025-31130

CVE-2025-31130 PUBLISHED CVSS 6.8 MEDIUM

gitoxide does not detect SHA-1 collision attacks

Reported by github_m · Published April 4, 2025

gix-archive is fixed in 0.20.0 (crates.io)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
gix-archivecrates.io0.20.0
gix-blamecrates.io0.1.0
gix-protocolcrates.io0.49.0
gix-commitgraphcrates.io0.27.0
gitoxide-corecrates.io0.46.0
gixcrates.io0.71.0
gix-mergecrates.io0.4.0
gix-fsckcrates.io0.10.0
gix-worktree-statecrates.io0.18.0
gix-configcrates.io0.44.0
gix-diffcrates.io0.51.0
gix-statuscrates.io0.18.0

5 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
6.8
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N

Affected products

VendorProductVersions
GitoxideLabsgitoxide< 0.42.0
crates.iogix-protocol0
wolficargo-audit0
crates.iogix-status0
wolfistarship0
crates.iogix-revision0
crates.iogix-archive0
crates.iogix-negotiate0
chainguardhelix0
crates.iogix-diff0
GitoxideLabsgitoxide0
crates.iogix-worktree-state0
crates.iogix-odb0
chainguardcargo-c0, 0
crates.iogix-fsck0
wolfihelix0
crates.iogix-traverse0
crates.iogix0
crates.iogix-discover0
chainguardstarship0

…and 17 more

Timeline

  • Apr 3, 2025 CVE Published
  • Apr 3, 2025 PoC Published (3 in total, the first dated here)
  • Apr 5, 2025 EPSS Score (30 in total, the first dated here)
  • Jan 23, 2026 CVE Updated
  • Mar 18, 2026 Security Advisory (2 in total, the first dated here)
  • Jun 13, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-31130
vulnetix vdb fixes CVE-2025-31130

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-31130/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›