{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-21235","id":"CVE-2022-21235","title":"Command Injection","description":"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.","descriptionLong":"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","updated":"2026-10-28T02:30:58.741410204Z","reserved":"2022-02-24T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"snyk","metric":{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"snyk"},"metrics":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"snyk"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"snyk.io"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","rating":"medium","source":"NVD"}],"rating":"high","products":["github.com/Masterminds/vcs"],"affectedProducts":[{"vendor":"n/a","product":"github.com/Masterminds/vcs","defaultStatus":null,"versions":[{"lessThan":"1.13.3","status":"affected","version":"unspecified","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/Masterminds/vcs","purl":"pkg:golang/github.com/Masterminds/vcs","ranges":["<1.13.2","<1.13.3"],"fixed":["1.13.2","1.13.3"],"advisory":"GHSA-6635-c626-vj4r"}],"cwes":["CWE-88","CWE-77"],"aliases":["GHSA-6635-c626-vj4r","GO-2022-0414","SNYK-GOLANG-GITHUBCOMMASTERMINDSVCS-2437078"],"references":[{"url":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMMASTERMINDSVCS-2437078","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/Masterminds/vcs/pull/105","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21235.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21235","tags":["advisory"]},{"url":"https://github.com/Masterminds/vcs/security/advisories/GHSA-6635-c626-vj4r","tags":["web"]},{"url":"https://github.com/Masterminds/vcs/commit/922a5122330ea8fbe56352a0172ddb6bf019cd22","tags":["web"]},{"url":"https://github.com/Masterminds/vcs","tags":["package"]},{"url":"https://github.com/Masterminds/vcs/releases/tag/v1.13.2","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.01585,"epssPercentile":0.76106,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-21235","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21235","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-21235","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-6635-c626-vj4r","ok":true,"note":"GHSA-6635-c626-vj4r"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-21235","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}