{"id":"CVE-2026-85626","summary":"git-mcp-server 2.15.1 Argument Injection via Git Ref Parameters","details":"git-mcp-server 2.15.1 contains an argument injection vulnerability in the ref and object parameters of git_log, git_diff, and git_show tools that lack leading-dash validation. Attackers can inject git command-line options like --output= to write files outside the repository to arbitrary paths accessible by the process.","modified":"2026-09-06T03:47:07.245759841Z","published":"2026-09-04T14:32:16.072Z","database_specific":{"cwe_ids":["CWE-88"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85626.json","cna_assigner":"VulnCheck"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85626.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-85626"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/git-mcp-server-2.15.1-argument-injection-via-git-ref-parameters"},{"type":"REPORT","url":"https://github.com/cyanheads/git-mcp-server/issues/53"},{"type":"PACKAGE","url":"https://github.com/cyanheads/git-mcp-server"},{"type":"ARTICLE","url":"https://github.com/cyanheads/git-mcp-server/blob/v2.15.3/src/services/git/providers/cli/operations/commits/log.ts"},{"type":"ARTICLE","url":"https://github.com/cyanheads/git-mcp-server/blob/v2.15.3/src/services/git/providers/cli/utils/command-builder.ts"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/cyanheads/git-mcp-server","events":[{"introduced":"0"},{"last_affected":"1786d570a1340b4fbba84fab641b8ff0be10c46e"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"last_affected":"2.15.3"}],"source":"AFFECTED_FIELD"}}],"versions":["v2.15.3","v2.15.2","v2.15.1","v2.15.0","v2.14.2","v2.14.1","v2.14.0","v2.13.0","v2.12.1","v2.12.0","v2.11.1","v2.11.0","v2.10.6","v2.10.5","v2.10.4","v2.10.3","v2.10.2","v2.10.1","v2.10.0","v2.9.2","v2.9.1","v2.8.4","v2.8.3","v2.8.2","v2.8.1","v2.8.0","v2.7.1","v2.7.0","v2.4.9","v2.4.7","v2.3.4","v2.3.3","v2.3.2","v2.3.1","v2.3.0","v2.2.4","v2.2.3","v2.2.2","v2.2.1","v2.1.8","v2.1.7","v2.1.6","v2.1.5","v2.1.4","v2.1.3","v2.1.2","v2.1.1","v2.1.0","v2.0.15","v2.0.14","v2.0.12","v2.0.11","v2.0.10","v2.0.9","v2.0.8","v2.0.7","v2.0.6","v2.0.4","v2.0.3","v2.0.2","v2.0.1","v2.0.0","v1.2.4","v1.2.3","1.2.0","v1.1.1","v1.1.0","v1.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-85626.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"}]}