CVE-2026-45570

CVE-2026-45570 is a critical-severity vulnerability in Go-git Project Go-git with a CVSS 3.x base score of 9.6. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-116.

Key facts

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.

Frequently asked questions

What is CVE-2026-45570?
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.
How severe is CVE-2026-45570?
CVE-2026-45570 has a CVSS 3.x base score of 9.6, rated critical severity. It is exploitable over network with low attack complexity, requires no privileges and user interaction. Impact on confidentiality is high, integrity high, and availability high.
Is CVE-2026-45570 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (29th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2026-45570?
CVE-2026-45570 primarily affects Go-git Project Go-git. In total, 4 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
How do I fix CVE-2026-45570?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
Does CVE-2026-45570 have an EU (EUVD) identifier?
Yes. CVE-2026-45570 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2026-32546.
When was CVE-2026-45570 published?
CVE-2026-45570 was published on 2026-05-27 and last updated on 2026-06-17.

References

Affected products (4)

More vulnerabilities in Go-git Project Go-git

All CVEs affecting Go-git Project Go-git →

Other CWE-116 vulnerabilities

Browse all CWE-116 vulnerabilities →