{"id":"GO-2022-0414","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.","aliases":["CVE-2022-21235","GHSA-6635-c626-vj4r"],"modified":"2026-03-16T03:10:58.658242Z","published":"2022-07-01T20:08:17Z","database_specific":{"review_status":"REVIEWED","url":"https://pkg.go.dev/vuln/GO-2022-0414"},"references":[{"type":"FIX","url":"https://github.com/Masterminds/vcs/pull/105"}],"affected":[{"package":{"name":"github.com/Masterminds/vcs","ecosystem":"Go","purl":"pkg:golang/github.com/Masterminds/vcs"},"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"]}]},"database_specific":{"source":"https://vuln.go.dev/ID/GO-2022-0414.json"}}],"schema_version":"1.7.5","credits":[{"name":"Alessio Della Libera of Snyk Research Team"}]}