{"cve":"CVE-2026-45570","nvd":{"published":"2026-05-27T15:16:30.240","modified":"2026-06-17T10:52:13.177","status":"Analyzed","description":"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.","cvss_v4":{"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","score":2.3},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","score":9.6},"cwes":["CWE-116"],"references":["https://github.com/go-git/go-git/security/advisories/GHSA-m7cr-m3pv-hgrp"],"products":["go-git_project:go-git"],"source":"nvd","synced_at":"2026-10-19T22:36:28.938604137+00:00"},"epss":{"cve":"CVE-2026-45570","score":0.00365,"percentile":0.3041,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-m7cr-m3pv-hgrp","url":"https://osv.dev/vulnerability/GHSA-m7cr-m3pv-hgrp","summary":"go-git: Improper single-quote escaping in go-git SSH transport","modified":"2026-09-10T03:51:06.296955929Z","packages":[{"ecosystem":"Go","name":"github.com/go-git/go-git/v5","purl":"pkg:golang/github.com/go-git/go-git/v5","ranges":["<5.19.1"],"fixed":["5.19.1"]},{"ecosystem":"Go","name":"github.com/go-git/go-git/v6","purl":"pkg:golang/github.com/go-git/go-git/v6","ranges":["<6.0.0-alpha.4"],"fixed":["6.0.0-alpha.4"]},{"ecosystem":"Go","name":"github.com/go-git/go-git","purl":"pkg:golang/github.com/go-git/go-git","ranges":["<=4.7.0"],"fixed":[]}]},{"id":"GO-2026-5496","url":"https://osv.dev/vulnerability/GO-2026-5496","summary":"Improper single-quote escaping in go-git SSH transport in github.com/go-git/go-git","modified":"2026-07-10T05:44:31.197201830Z","packages":[{"ecosystem":"Go","name":"github.com/go-git/go-git","purl":"pkg:golang/github.com/go-git/go-git","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"github.com/go-git/go-git/v5","purl":"pkg:golang/github.com/go-git/go-git/v5","ranges":["<5.19.1"],"fixed":["5.19.1"]},{"ecosystem":"Go","name":"github.com/go-git/go-git/v6","purl":"pkg:golang/github.com/go-git/go-git/v6","ranges":["<6.0.0-alpha.4"],"fixed":["6.0.0-alpha.4"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}