{"answers":{"affected":"9 open source packages ship an affected version, including github.com/go-git/go-git/v5, github.com/go-git/go-git and github.com/go-git/go-git/v4. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-21614 in the wild and no public exploit code.","fix":"Upgrade github.com/go-git/go-git/v5 to 5.13.0 or later.","what":"CVE-2025-21614 is a high-severity denial of service vulnerability in go-git, published on 6 Jan 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-21614 and fix it if it is affected.\n\nWhat it is: CVE-2025-21614 is a high-severity denial of service vulnerability in go-git, published on 6 Jan 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-21614 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/go-git/go-git/v5 (Go): affected all versions; fixed in 5.13.0\n- github.com/go-git/go-git/v5 (Go): affected all versions; fixed in 5.13.0\n- github.com/go-git/go-git/v5 (Go): affected all versions; fixed in 5.13.0\n- github.com/go-git/go-git (Go): affected from 4.0.0 up to 4.13.1; no fix listed\n- github.com/go-git/go-git (Go): affected from 4.0.0 up to 4.13.1; no fix listed\n- github.com/go-git/go-git/v4 (Go): affected from 4.0.0; no fix listed\n- gopkg.in/src-d/go-git.v4 (Go): affected from 4.0.0; no fix listed\n- gopkg.in/src-d/go-git.v4 (Go): affected from 4.0.0 up to 4.13.1; no fix listed\n- gopkg.in/src-d/go-git.v4 (Go): affected from 4.0.0 up to 4.13.1; no fix listed\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-21614/ (Markdown: https://insights.sbomify.com/CVE-2025-21614/index.md)","id":"CVE-2025-21614","markdown":"https://insights.sbomify.com/CVE-2025-21614/index.md","name":"CVE-2025-21614","record":{"aliases":["AZL-55063","AZL-55073","AZL-55079","AZL-55106","DEBIAN-CVE-2025-21614","GHSA-r9px-m959-cxf4","GO-2025-3367","MINI-74vx-8m8w-2c93","MINI-8x5v-rr3g-mgvw","MINI-rpmw-mgvw-j3g2","MINI-w4cj-qfvj-mq7w","UBUNTU-CVE-2025-21614"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Go Git library","requires_auth":"none","summary":"Attackers can cause resource exhaustion and denial of service in go-git clients by sending maliciously crafted Git server responses.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"go-git","vendor":"go-git_project"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"description":"go-git is a highly extensible git implementation library written in pure Go. A denial of service (DoS) vulnerability was discovered in go-git versions prior to v5.13. This vulnerability allows an attacker to perform denial of service attacks by providing specially crafted responses from a Git server which triggers resource exhaustion in go-git clients. Users running versions of go-git from v4 and above are recommended to upgrade to v5.13 in order to mitigate this vulnerability.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"go-git clients vulnerable to DoS via maliciously crafted Git server replies","id":"CVE-2025-21614","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2025"},"n_packages":9,"n_references":1,"next":{"headline":"AAT allows data exfiltration by other apps installed on the same device","id":"CVE-2025-21615"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["4.0.0"],"last_affected":["4.13.1"],"package":"github.com/go-git/go-git","purl":null,"source":"GHSA-r9px-m959-cxf4"},{"ecosystem":"Go","fixed":[],"introduced":["4.0.0"],"last_affected":["4.13.1"],"package":"github.com/go-git/go-git","purl":"pkg:golang/github.com/go-git/go-git","source":"GHSA-r9px-m959-cxf4"},{"ecosystem":"Go","fixed":[],"introduced":["4.0.0"],"last_affected":[],"package":"github.com/go-git/go-git/v4","purl":"pkg:golang/github.com/go-git/go-git/v4","source":"GO-2025-3367"},{"ecosystem":"Go","fixed":["5.13.0"],"introduced":["0"],"last_affected":[],"package":"github.com/go-git/go-git/v5","purl":null,"source":"GHSA-r9px-m959-cxf4"},{"ecosystem":"Go","fixed":["5.13.0"],"introduced":["0"],"last_affected":[],"package":"github.com/go-git/go-git/v5","purl":"pkg:golang/github.com/go-git/go-git/v5","source":"GHSA-r9px-m959-cxf4"},{"ecosystem":"Go","fixed":["5.13.0"],"introduced":["0"],"last_affected":[],"package":"github.com/go-git/go-git/v5","purl":"pkg:golang/github.com/go-git/go-git/v5","source":"GO-2025-3367"},{"ecosystem":"Go","fixed":[],"introduced":["4.0.0"],"last_affected":[],"package":"gopkg.in/src-d/go-git.v4","purl":"pkg:golang/gopkg.in/src-d/go-git.v4","source":"GO-2025-3367"},{"ecosystem":"Go","fixed":[],"introduced":["4.0.0"],"last_affected":["4.13.1"],"package":"gopkg.in/src-d/go-git.v4","purl":null,"source":"GHSA-r9px-m959-cxf4"},{"ecosystem":"Go","fixed":[],"introduced":["4.0.0"],"last_affected":["4.13.1"],"package":"gopkg.in/src-d/go-git.v4","purl":"pkg:golang/gopkg.in/src-d/go-git.v4","source":"GHSA-r9px-m959-cxf4"}],"prev":{"headline":"go-git has an Argument Injection via the URL field","id":"CVE-2025-21613"},"products":["go-git"],"published":"2025-01-06","related":[{"cvss_score":9.8,"headline":"Maliciously crafted Git server replies can lead to path traversal and RCE on go-git clients","id":"CVE-2023-49569","kev_date_added":null,"published":"2024-01-12"},{"cvss_score":9.2,"headline":"go-git has an Argument Injection via the URL field","id":"CVE-2025-21613","kev_date_added":null,"published":"2025-01-06"},{"cvss_score":7.5,"headline":"Maliciously crafted Git server replies can cause DoS on go-git clients","id":"CVE-2023-49568","kev_date_added":null,"published":"2024-01-12"},{"cvss_score":7,"headline":"go-git: Improper parsing of specially crafted objects may lead to inconsistent interpretation compared to upstream Git","id":"CVE-2026-45022","kev_date_added":null,"published":"2026-05-27"},{"cvss_score":5.4,"headline":"go-git: Crafted repositories may modify main and submodule .git directories","id":"CVE-2026-45571","kev_date_added":null,"published":"2026-05-27"},{"cvss_score":5,"headline":"go-git: Maliciously crafted idx file can cause asymmetric memory consumption","id":"CVE-2026-34165","kev_date_added":null,"published":"2026-03-31"}],"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":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-08-26","vendors":["go-git"]},"summary":"Attackers can cause resource exhaustion and denial of service in go-git clients by sending maliciously crafted Git server responses.","url":"https://insights.sbomify.com/CVE-2025-21614/"}