Security mailing lists by PureSourceCode

CVE-2026-45570

LOW 2.3CVSS 4.0

go-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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD go-git_project go-git
cpe:2.3:a:go-git_project:go-git:*:*:*:*:*:go:*:*
< 5.19.1 5.19.1
NVD go-git_project go-git
cpe:2.3:a:go-git_project:go-git:6.0.0:alpha1:*:*:*:go:*:*
= 6.0.0
NVD go-git_project go-git
cpe:2.3:a:go-git_project:go-git:6.0.0:alpha2:*:*:*:go:*:*
= 6.0.0
NVD go-git_project go-git
cpe: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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.