blob: b20947bc330daa986f93ac4229f98b7c2fda3dc6 [file] [log] [blame]
{
"schema_version": "1.3.1",
"id": "GO-2022-0414",
"modified": "0001-01-01T00:00:00Z",
"published": "2022-07-01T20:08:17Z",
"aliases": [
"CVE-2022-21235",
"GHSA-6635-c626-vj4r"
],
"summary": "Command injection in github.com/Masterminds/vcs",
"details": "Passing untrusted inputs to VCS functions can permit an attacker to execute arbitrary commands.\n\nThe vcs package executes version control commands with user-provided arguments. These arguments can be interpreted as command-line flags, which can be used to perform command injection.",
"affected": [
{
"package": {
"name": "github.com/Masterminds/vcs",
"ecosystem": "Go"
},
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.13.3"
}
]
}
],
"ecosystem_specific": {
"imports": [
{
"path": "github.com/Masterminds/vcs",
"symbols": [
"BzrRepo.ExportDir",
"BzrRepo.Get",
"BzrRepo.Init",
"BzrRepo.Ping",
"GitRepo.Get",
"GitRepo.Init",
"GitRepo.Update",
"HgRepo.ExportDir",
"HgRepo.Get",
"HgRepo.Init",
"HgRepo.Ping",
"NewRepo",
"NewSvnRepo",
"SvnRepo.ExportDir",
"SvnRepo.Get",
"SvnRepo.Ping"
]
}
]
}
}
],
"references": [
{
"type": "FIX",
"url": "https://github.com/Masterminds/vcs/pull/105"
}
],
"credits": [
{
"name": "Alessio Della Libera of Snyk Research Team"
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2022-0414",
"review_status": "REVIEWED"
}
}