Vulnerability in Go-Git
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.6 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.004 (35.5th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 36th percentile — 35.5% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.004 · newest: 0.004 · change: +0.001
Affected products
- Go-Git — versions < 5.19.1, >= 6.0.0-alpha.1, < 6.0.0-alpha.4
- Go-Git Project — versions 6.0.0
Weakness classification (CWE)
References
- github.com/go-git/go-git/security/advisories/GHSA-m7cr-m3pv-hgrp (Vendor Advisory)
Frequently asked questions
- What is CVE-2026-45570?
- CVE-2026-45570 is a critical-severity vulnerability in Go-Git, classified under Improper Encoding or Escaping of Output. CVSS score: 9.6/10. Published 2026-05-27.
- How severe is CVE-2026-45570?
- Critical severity. CVSS v3 base score is 9.6 out of 10.