{"id":"CVE-2022-21235","aliases":["GHSA-6635-c626-vj4r","GO-2022-0414","SNYK-GOLANG-GITHUBCOMMASTERMINDSVCS-2437078"],"url":"https://o3.security/vulnerability/CVE-2022-21235","summary":"Command Injection","details":"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.","published":"2022-04-01T15:55:10.738Z","modified":"2026-07-15T02:03:34.249251657Z","cvss":{"score":8.1,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/Masterminds/vcs","fixedVersion":"1.13.2"}],"fix":{"url":"https://github.com/Masterminds/vcs/pull/105","label":"Masterminds/vcs#105"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21235.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21235"},{"type":"ADVISORY","url":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMMASTERMINDSVCS-2437078"},{"type":"FIX","url":"https://github.com/Masterminds/vcs/pull/105"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-15T02:03:34.249251657Z"}}