- 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.
- Source
- security-advisories@github.com
- NVD status
- Analyzed
- Products
- go-git
CVSS 4.0
- Type
- Secondary
- Base score
- 2.3
- Impact score
- -
- Exploitability score
- -
- Vector string
- 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
- Severity
- LOW
CVSS 3.1
- Type
- Primary
- Base score
- 9.6
- Impact score
- 6
- Exploitability score
- 2.8
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
- Severity
- CRITICAL
- security-advisories@github.com
- CWE-116
- Hype score
- Not currently trending
[
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:go-git_project:go-git:*:*:*:*:*:go:*:*",
"matchCriteriaId": "C94C128F-5D94-4A33-B6DA-52E95FC47C7A",
"versionEndExcluding": "5.19.1",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:go-git_project:go-git:6.0.0:alpha1:*:*:*:go:*:*",
"matchCriteriaId": "DE1B5EEF-2491-4FDA-AAD5-338EF0AB58F2",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:go-git_project:go-git:6.0.0:alpha2:*:*:*:go:*:*",
"matchCriteriaId": "5787291E-E6E5-44DE-AAD4-CD03A7E47DB2",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:go-git_project:go-git:6.0.0:alpha3:*:*:*:go:*:*",
"matchCriteriaId": "01E7EEBF-CC88-4FE1-ABE8-FDBA04C44816",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
]