{"id":"CVE-2026-45570","published":"2026-05-27T14:59:17Z","modified":"2026-05-28T15:12:03Z","title":"go-git: Improper single-quote escaping in go-git SSH transport","vendor":"go-git","product":"go-git","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.3,"severity":"LOW","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00365,"percentile":0.3117,"provenance":"source"},"cwes":[{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"references":[{"url":"https://github.com/go-git/go-git/security/advisories/GHSA-m7cr-m3pv-hgrp","tags":["x_refsource_CONFIRM"]}],"priority":{"score":7.8,"factors":[{"name":"EPSS percentile","points":6.23},{"name":"CVSS severity","points":1.61}]},"vendorSlug":"go-git","affectedVersions":[{"vendor":"go-git","product":"go-git","versions":["< 5.19.1",">= 6.0.0-alpha.1, < 6.0.0-alpha.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-28T15:11:53.826234Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/go-git/go-git/v5","vulnerableRanges":["<5.19.1"],"patched":["5.19.1"],"from":["GHSA-m7cr-m3pv-hgrp","GO-2026-5496"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/go-git/go-git/v6","vulnerableRanges":["<6.0.0-alpha.4"],"patched":["6.0.0-alpha.4"],"from":["GHSA-m7cr-m3pv-hgrp","GO-2026-5496"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/go-git/go-git","vulnerableRanges":["<=4.7.0","all versions"],"patched":[],"from":["GHSA-m7cr-m3pv-hgrp","GO-2026-5496"],"provenance":"source"}],"summary":{"text":"go-git, a pure Go git implementation library, has an improper escaping flaw in its SSH transport, where a repository path containing a single quote is not escaped when the remote exec command is built. An attacker who can supply a repository path with an embedded single quote, and get a user to interact with it, can have the path break out of its quoting and inject additional shell tokens into the command; the attack requires no privileges or prior authentication over the network, but does depend on a user interaction and on the affected go-git versions being in use.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:16:40Z"},"euvd":{"id":"EUVD-2026-32546","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-34165","published":"2026-03-31","fixed":"5.17.1","kev":false},{"cve":"CVE-2026-41506","published":"2026-05-08","fixed":"5.18.0","kev":false},{"cve":"CVE-2026-45022","published":"2026-05-27","fixed":"5.19.0","kev":false,"link":{"from":"CVE-2026-45022","to":"CVE-2026-45570","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/go-git/go-git/v5","fromFixed":"5.19.0","toFixed":"5.19.1","daysApart":0},{"kind":"version-step","provenance":"source","package":"Go:github.com/go-git/go-git/v6","fromFixed":"6.0.0-alpha.3","toFixed":"6.0.0-alpha.4","daysApart":0}]}},{"cve":"CVE-2026-45570","published":"2026-05-27","fixed":"5.19.1","kev":false},{"cve":"CVE-2026-45571","published":"2026-05-27","fixed":"5.19.1","kev":false},{"cve":"CVE-2026-71556","published":"2026-08-07","fixed":"5.19.2","kev":false},{"cve":"CVE-2026-71557","published":"2026-08-07","fixed":"5.19.2","kev":false}],"package":"Go:github.com/go-git/go-git/v5"}}