CVE-2026-45570
LOW 2.3CVSS 4.0go-git: Improper single-quote escaping in go-git SSH transport
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
- 27 May 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-116
- Also known as
- GHSA-m7cr-m3pv-hgrpGO-2026-5496
- Sources
- NVDJSONOSV GHSA-m7cr-m3pv-hgrpJSONOSV GO-2026-5496JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | LOW 2.3 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | go-git_project | go-gitcpe:2.3:a:go-git_project:go-git:*:*:*:*:*:go:*:* |
< 5.19.1 | 5.19.1 |
| NVD | go-git_project | go-gitcpe:2.3:a:go-git_project:go-git:6.0.0:alpha1:*:*:*:go:*:* |
= 6.0.0 | |
| NVD | go-git_project | go-gitcpe:2.3:a:go-git_project:go-git:6.0.0:alpha2:*:*:*:go:*:* |
= 6.0.0 | |
| NVD | go-git_project | go-gitcpe:2.3:a:go-git_project:go-git:6.0.0:alpha3:*:*:*:go:*:* |
= 6.0.0 | |
| OSV | Go | github.com/go-git/go-git/v5 | < 5.19.1 | 5.19.1 |
| OSV | Go | github.com/go-git/go-git/v6 | < 6.0.0-alpha.4 | 6.0.0-alpha.4 |
| OSV | Go | github.com/go-git/go-git | <= 4.7.0 | |
| OSV | Go | github.com/go-git/go-git | all versions |
References
- https://github.com/go-git/go-git/security/advisories/GHSA-m7cr-m3pv-hgrp · Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-45570 · ADVISORY
- https://github.com/go-git/go-git · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 27 May 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 19 May 2026)