{"answers":{"affected":"40 open source packages ship an affected version, including gitoxide, gitoxide-core and gix.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-31130 exists.","fix":"Upgrade gitoxide to 0.42.0 or later.","what":"CVE-2025-31130 is a medium-severity vulnerability in GitoxideLabs gitoxide, published on 4 Apr 2025."},"fix_prompt":"Check this codebase for CVE-2025-31130 and fix it if it is affected.\n\nWhat it is: CVE-2025-31130 is a medium-severity vulnerability in GitoxideLabs gitoxide, published on 4 Apr 2025. \nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-31130 exists.\n\nAffected packages and fixed versions:\n- gitoxide (crates.io): affected all versions; fixed in 0.42.0\n- gitoxide (crates.io): affected all versions; fixed in 0.42.0\n- gitoxide-core (crates.io): affected all versions; fixed in 0.46.0\n- gitoxide-core (crates.io): affected all versions; fixed in 0.46.0\n- gix (crates.io): affected all versions; fixed in 0.71.0\n- gix (crates.io): affected all versions; fixed in 0.71.0\n- gix-archive (crates.io): affected all versions; fixed in 0.20.0\n- gix-archive (crates.io): affected all versions; fixed in 0.20.0\n- gix-blame (crates.io): affected all versions; fixed in 0.1.0\n- gix-blame (crates.io): affected all versions; fixed in 0.1.0\n- gix-commitgraph (crates.io): affected all versions; fixed in 0.27.0\n- gix-commitgraph (crates.io): affected all versions; fixed in 0.27.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-31130/ (Markdown: https://insights.sbomify.com/CVE-2025-31130/index.md)","id":"CVE-2025-31130","markdown":"https://insights.sbomify.com/CVE-2025-31130/index.md","name":"CVE-2025-31130","record":{"aliases":["DEBIAN-CVE-2025-31130","GHSA-2frx-2596-x5r6","MINI-wj8m-7cjc-fx46","RUSTSEC-2025-0021","UBUNTU-CVE-2025-31130"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[],"cvss":{"score":6.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-328","name":"Use of Weak Hash"}],"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.","ecosystems":["crates.io"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"gitoxide does not detect SHA-1 collision attacks","id":"CVE-2025-31130","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":null,"year":"2025"},"n_packages":55,"n_references":2,"next":{"headline":"Path Traversal allowing arbitrary read of files in Yeswiki","id":"CVE-2025-31131"},"packages":[{"ecosystem":"crates.io","fixed":["0.42.0"],"introduced":["0"],"last_affected":[],"package":"gitoxide","purl":null,"source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.42.0"],"introduced":["0"],"last_affected":[],"package":"gitoxide","purl":"pkg:cargo/gitoxide","source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.46.0"],"introduced":["0"],"last_affected":[],"package":"gitoxide-core","purl":null,"source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.46.0"],"introduced":["0"],"last_affected":[],"package":"gitoxide-core","purl":"pkg:cargo/gitoxide-core","source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.71.0"],"introduced":["0"],"last_affected":[],"package":"gix","purl":null,"source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.71.0"],"introduced":["0"],"last_affected":[],"package":"gix","purl":"pkg:cargo/gix","source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.20.0"],"introduced":["0"],"last_affected":[],"package":"gix-archive","purl":null,"source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.20.0"],"introduced":["0"],"last_affected":[],"package":"gix-archive","purl":"pkg:cargo/gix-archive","source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.1.0"],"introduced":["0"],"last_affected":[],"package":"gix-blame","purl":null,"source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.1.0"],"introduced":["0"],"last_affected":[],"package":"gix-blame","purl":"pkg:cargo/gix-blame","source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.27.0"],"introduced":["0"],"last_affected":[],"package":"gix-commitgraph","purl":null,"source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.27.0"],"introduced":["0"],"last_affected":[],"package":"gix-commitgraph","purl":"pkg:cargo/gix-commitgraph","source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.44.0"],"introduced":["0"],"last_affected":[],"package":"gix-config","purl":null,"source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.44.0"],"introduced":["0"],"last_affected":[],"package":"gix-config","purl":"pkg:cargo/gix-config","source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.51.0"],"introduced":["0"],"last_affected":[],"package":"gix-diff","purl":null,"source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.51.0"],"introduced":["0"],"last_affected":[],"package":"gix-diff","purl":"pkg:cargo/gix-diff","source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.13.0"],"introduced":["0"],"last_affected":[],"package":"gix-dir","purl":null,"source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.13.0"],"introduced":["0"],"last_affected":[],"package":"gix-dir","purl":"pkg:cargo/gix-dir","source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.39.0"],"introduced":["0"],"last_affected":[],"package":"gix-discover","purl":null,"source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.39.0"],"introduced":["0"],"last_affected":[],"package":"gix-discover","purl":"pkg:cargo/gix-discover","source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.41.0"],"introduced":["0"],"last_affected":[],"package":"gix-features","purl":null,"source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.41.0"],"introduced":["0"],"last_affected":[],"package":"gix-features","purl":"pkg:cargo/gix-features","source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.41.0"],"introduced":["0.0.0-0"],"last_affected":[],"package":"gix-features","purl":"pkg:cargo/gix-features","source":"RUSTSEC-2025-0021"},{"ecosystem":"crates.io","fixed":["0.18.0"],"introduced":["0"],"last_affected":[],"package":"gix-filter","purl":null,"source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.18.0"],"introduced":["0"],"last_affected":[],"package":"gix-filter","purl":"pkg:cargo/gix-filter","source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.10.0"],"introduced":["0"],"last_affected":[],"package":"gix-fsck","purl":null,"source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.10.0"],"introduced":["0"],"last_affected":[],"package":"gix-fsck","purl":"pkg:cargo/gix-fsck","source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.39.0"],"introduced":["0"],"last_affected":[],"package":"gix-index","purl":null,"source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.39.0"],"introduced":["0"],"last_affected":[],"package":"gix-index","purl":"pkg:cargo/gix-index","source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.4.0"],"introduced":["0"],"last_affected":[],"package":"gix-merge","purl":null,"source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.4.0"],"introduced":["0"],"last_affected":[],"package":"gix-merge","purl":"pkg:cargo/gix-merge","source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.19.0"],"introduced":["0"],"last_affected":[],"package":"gix-negotiate","purl":null,"source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.19.0"],"introduced":["0"],"last_affected":[],"package":"gix-negotiate","purl":"pkg:cargo/gix-negotiate","source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.48.0"],"introduced":["0"],"last_affected":[],"package":"gix-object","purl":null,"source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.48.0"],"introduced":["0"],"last_affected":[],"package":"gix-object","purl":"pkg:cargo/gix-object","source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.68.0"],"introduced":["0"],"last_affected":[],"package":"gix-odb","purl":null,"source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.68.0"],"introduced":["0"],"last_affected":[],"package":"gix-odb","purl":"pkg:cargo/gix-odb","source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.58.0"],"introduced":["0"],"last_affected":[],"package":"gix-pack","purl":null,"source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.58.0"],"introduced":["0"],"last_affected":[],"package":"gix-pack","purl":"pkg:cargo/gix-pack","source":"GHSA-2frx-2596-x5r6"},{"ecosystem":"crates.io","fixed":["0.49.0"],"introduced":["0"],"last_affected":[],"package":"gix-protocol","purl":null,"source":"GHSA-2frx-2596-x5r6"}],"prev":{"headline":"jooby-pac4j: deserialization of untrusted data","id":"CVE-2025-31129"},"products":["gitoxide"],"published":"2025-04-04","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-01-23","vendors":["GitoxideLabs"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2025-31130/"}