{"id":"CVE-2026-45570","summary":"go-git: Improper single-quote escaping in go-git SSH transport","details":"go-git is an extensible git implementation library written in pure Go. Prior to 5.19.1 and 6.0.0-alpha.4, go-git's SSH transport constructs the remote exec command by wrapping the repository path in single quotes without escaping single quotes embedded inside the path. A repository path containing a single quote can therefore break out of the quoted region in the exec command and be appended as additional shell tokens. This vulnerability is fixed in 5.19.1 and 6.0.0-alpha.4.","aliases":["GHSA-m7cr-m3pv-hgrp"],"modified":"2026-06-06T04:01:10.933762492Z","published":"2026-05-27T14:59:17.441Z","related":["CGA-4fx8-v7vx-v65m","openSUSE-SU-2026:10831-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45570.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-116"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45570.json"},{"type":"ADVISORY","url":"https://github.com/go-git/go-git/security/advisories/GHSA-m7cr-m3pv-hgrp"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45570"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/go-git/go-git","events":[{"introduced":"5c776e15a11be5d2dfc6df27692bf867a69c37d8"},{"fixed":"d9a69831082341eab799c062e10ad28b3204c08a"}]}],"versions":["v6.0.0-alpha.3","v6.0.0-alpha.2","v6.0.0-alpha.1"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-45570.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:L"}]}