{"cve":"CVE-2022-21235","nvd":{"published":"2022-04-01T16:15:07.547","modified":"2026-06-17T04:25:50.013","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-88"],"references":["https://github.com/Masterminds/vcs/pull/105","https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMMASTERMINDSVCS-2437078","https://github.com/Masterminds/vcs/pull/105","https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMMASTERMINDSVCS-2437078"],"products":["vcs_project:vcs"],"source":"nvd","synced_at":"2026-10-19T21:29:06.454770966+00:00"},"epss":{"cve":"CVE-2022-21235","score":0.01585,"percentile":0.75582,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-6635-c626-vj4r","url":"https://osv.dev/vulnerability/GHSA-6635-c626-vj4r","summary":"Command Injection Vulnerability with Mercurial in VCS","modified":"2026-09-10T03:49:28.613761378Z","packages":[{"ecosystem":"Go","name":"github.com/Masterminds/vcs","purl":"pkg:golang/github.com/Masterminds/vcs","ranges":["<1.13.2"],"fixed":["1.13.2"]}]},{"id":"GO-2022-0414","url":"https://osv.dev/vulnerability/GO-2022-0414","summary":"Command injection in github.com/Masterminds/vcs","modified":"2026-03-16T03:10:58.658242Z","packages":[{"ecosystem":"Go","name":"github.com/Masterminds/vcs","purl":"pkg:golang/github.com/Masterminds/vcs","ranges":["<1.13.3"],"fixed":["1.13.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}