CVE-2026-45570

go-git: Improper single-quote escaping in go-git SSH transport

CVE-2026-45570 is fixed in 3 products on 1 platform, first by DEBIAN-CVE-2026-45570, released June 24, 2026. It is not reported as exploited. Patch Radar priority: High.

High
CVSS
9.6
Low
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0037
30th percentile

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.

Where it's fixed

ProductFixed inFixReleased
Linux
golang-github-go-git-go-git · Debian 14 5.19.1-1 DEBIAN-CVE-2026-45570 Jun 24, 2026
golang-github-go-git-go-git-v6 · Debian 14 6.0.0~alpha4-1 DEBIAN-CVE-2026-45570 Jun 24, 2026
govulncheck-vulndb · opensuse-leap 16.0 0.0.20260723T184607-160000.1.1 OPENSUSE-SU-2026:21483-1 Jul 30, 2026

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.