{"id":"CVE-2022-21235","published":"2022-04-01T15:55:10Z","modified":"2024-09-17T00:20:56Z","title":"Command Injection","vendor":null,"product":null,"tier":"tail","description":{"text":"The package github.com/masterminds/vcs before 1.13.3 are vulnerable to Command Injection via argument injection. When hg is executed, argument strings are passed to hg in a way that additional flags can be set. The additional flags can be used to perform a command injection.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01585,"percentile":0.76181,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMMASTERMINDSVCS-2437078","tags":["x_refsource_MISC"]},{"url":"https://github.com/Masterminds/vcs/pull/105","tags":["x_refsource_MISC"]}],"priority":{"score":20.9,"factors":[{"name":"EPSS percentile","points":15.24},{"name":"CVSS severity","points":5.67}]},"affectedVersions":[{"vendor":"n/a","product":"github.com/Masterminds/vcs","versions":[">= unspecified, < 1.13.3"]}],"affected":[{"ecosystem":"Go","package":"github.com/Masterminds/vcs","vulnerableRanges":["<1.13.2","<1.13.3"],"patched":["1.13.2","1.13.3"],"from":["GHSA-6635-c626-vj4r","GO-2022-0414"],"provenance":"source"}],"summary":{"text":"The Command Injection flaw lies in the github.com/masterminds/vcs Go package, in versions before 1.13.3, where argument strings passed to the hg (Mercurial) command are not safely separated, allowing additional flags to be injected. An attacker who can influence those arguments can use the injected flags to achieve command injection, and exploiting this requires network access and no privileges or user interaction, though the attack is considered complex (high attack complexity).","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:11:18Z"},"euvd":{"id":"EUVD-2022-1643","exploited":false,"provenance":"source"}}