{"answers":{"affected":"7 open source packages ship an affected version, including github.com/go-git/go-git/v5, github.com/go-git/go-git/v4 and gopkg.in/src-d/go-git.v4. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-21613 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-21613 is a critical command injection 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-21613 and fix it if it is affected.\n\nWhat it is: CVE-2025-21613 is a critical command injection 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-21613 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/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-21613/ (Markdown: https://insights.sbomify.com/CVE-2025-21613/index.md)","id":"CVE-2025-21613","markdown":"https://insights.sbomify.com/CVE-2025-21613/index.md","name":"CVE-2025-21613","record":{"aliases":["AZL-55060","AZL-55067","AZL-55088","AZL-55094","CLEANSTART-2026-YJ06011","DEBIAN-CVE-2025-21613","GHSA-v725-9546-7q7m","GO-2025-3368","MINI-39hc-v532-7664","MINI-7rc3-2v58-ww4c","MINI-8w3m-f3jr-mxxp","MINI-gc49-jjpm-94vg","SUSE-SU-2025:0191-1","SUSE-SU-2025:0277-1","UBUNTU-CVE-2025-21613","openSUSE-SU-2025:14654-1","openSUSE-SU-2025:14658-1","openSUSE-SU-2025:14752-1","openSUSE-SU-2025:15438-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Go git library","requires_auth":"none","summary":"Attackers can inject arguments into git commands via the URL field when using the file transport protocol, potentially leading to code execution.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"go-git","vendor":"go-git_project"}],"cvss":{"score":9.2,"severity":"critical","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/U:Clear","version":"4.0"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"}],"description":"go-git is a highly extensible git implementation library written in pure Go. An argument injection vulnerability was discovered in go-git versions prior to v5.13. Successful exploitation of this vulnerability could allow an attacker to set arbitrary values to git-upload-pack flags. This only happens when the file transport protocol is being used, as that is the only protocol that shells out to git binaries. This vulnerability is fixed in 5.13.0.","ecosystems":["Go","SUSE:Linux Enterprise Module for Public Cloud 12","SUSE:Linux Enterprise Module for Public Cloud 15 SP3","SUSE:Linux Enterprise Module for Public Cloud 15 SP4","SUSE:Linux Enterprise Module for Public Cloud 15 SP5","SUSE:Linux Enterprise Module for Public Cloud 15 SP6","openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"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 has an Argument Injection via the URL field","id":"CVE-2025-21613","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"command_injection","year":"2025"},"n_packages":17,"n_references":1,"next":{"headline":"go-git clients vulnerable to DoS via maliciously crafted Git server replies","id":"CVE-2025-21614"},"packages":[{"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-3368"},{"ecosystem":"Go","fixed":["5.13.0"],"introduced":["0"],"last_affected":[],"package":"github.com/go-git/go-git/v5","purl":null,"source":"GHSA-v725-9546-7q7m"},{"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-v725-9546-7q7m"},{"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-3368"},{"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-3368"},{"ecosystem":"Go","fixed":[],"introduced":["4.0.0"],"last_affected":["4.13.1"],"package":"gopkg.in/src-d/go-git.v4","purl":null,"source":"GHSA-v725-9546-7q7m"},{"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-v725-9546-7q7m"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 12","fixed":["3.3.1611.0-4.36.1"],"introduced":["0"],"last_affected":[],"package":"amazon-ssm-agent","purl":"pkg:rpm/suse/amazon-ssm-agent\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2012","source":"SUSE-SU-2025:0191-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP3","fixed":["3.3.1611.0-150000.5.20.1"],"introduced":["0"],"last_affected":[],"package":"amazon-ssm-agent","purl":"pkg:rpm/suse/amazon-ssm-agent\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP3","source":"SUSE-SU-2025:0277-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP4","fixed":["3.3.1611.0-150000.5.20.1"],"introduced":["0"],"last_affected":[],"package":"amazon-ssm-agent","purl":"pkg:rpm/suse/amazon-ssm-agent\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP4","source":"SUSE-SU-2025:0277-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP5","fixed":["3.3.1611.0-150000.5.20.1"],"introduced":["0"],"last_affected":[],"package":"amazon-ssm-agent","purl":"pkg:rpm/suse/amazon-ssm-agent\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP5","source":"SUSE-SU-2025:0277-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP6","fixed":["3.3.1611.0-150000.5.20.1"],"introduced":["0"],"last_affected":[],"package":"amazon-ssm-agent","purl":"pkg:rpm/suse/amazon-ssm-agent\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP6","source":"SUSE-SU-2025:0277-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["3.3.1611.0-150000.5.20.1"],"introduced":["0"],"last_affected":[],"package":"amazon-ssm-agent","purl":"pkg:rpm/opensuse/amazon-ssm-agent\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2025:0277-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.3.1611.0-1.1"],"introduced":["0"],"last_affected":[],"package":"amazon-ssm-agent","purl":"pkg:rpm/opensuse/amazon-ssm-agent\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14658-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["20230603+git.5fdd2d6-5.1"],"introduced":["0"],"last_affected":[],"package":"brise","purl":"pkg:rpm/opensuse/brise\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14752-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["11.3.0-5.1"],"introduced":["0"],"last_affected":[],"package":"grafana","purl":"pkg:rpm/opensuse/grafana\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14654-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.3.3+git~14~gcee0d0d-1.1"],"introduced":["0"],"last_affected":[],"package":"rz-pm","purl":"pkg:rpm/opensuse/rz-pm\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15438-1"}],"prev":{"headline":"Cross-site Scripting in TabberTransclude in Extension:TabberNeue","id":"CVE-2025-21612"},"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":7.5,"headline":"go-git clients vulnerable to DoS via maliciously crafted Git server replies","id":"CVE-2025-21614","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":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-01-06","vendors":["go-git"]},"summary":"Attackers can inject arguments into git commands via the URL field when using the file transport protocol, potentially leading to code execution.","url":"https://insights.sbomify.com/CVE-2025-21613/"}