{"id":"CVE-2026-45570","aliases":["GHSA-m7cr-m3pv-hgrp","GO-2026-5496"],"url":"https://o3.security/vulnerability/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.","published":"2026-05-27T14:59:17.441Z","modified":"2026-07-31T18:30:46.978348288Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/go-git/go-git/v5","fixedVersion":"5.19.1"},{"ecosystem":"Go","name":"github.com/go-git/go-git/v6","fixedVersion":"6.0.0-alpha.4"},{"ecosystem":"Go","name":"github.com/go-git/go-git","fixedVersion":null}],"fix":null,"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-31T18:30:46.978348288Z"}}