# CVE-2022-21235: Command Injection

- Severity: High 8.1 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.58%, higher than 76% of CVEs (2026-12-01)
- Published: 2022-04-01T14:05:33.000Z
- Modified: 2026-09-10T03:49:28.613Z
- Also known as: GHSA-6635-c626-vj4r, GO-2022-0414, SNYK-GOLANG-GITHUBCOMMASTERMINDSVCS-2437078
- Weaknesses: CWE-77, CWE-88
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- github.com/Masterminds/vcs: from unspecified before 1.13.3
- github.com/Masterminds/vcs (Go): before 1.13.2; before 1.13.3
- vcs_project vcs: before 1.1.13

## Every score

- snyk: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMMASTERMINDSVCS-2437078> (third-party-advisory, web)
- <https://github.com/Masterminds/vcs/pull/105> (fix, patch, third-party-advisory, web)
- <https://github.com/Masterminds/vcs/security/advisories/GHSA-6635-c626-vj4r> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-21235> (advisory)
- <https://github.com/Masterminds/vcs/commit/922a5122330ea8fbe56352a0172ddb6bf019cd22> (web)
- <https://github.com/Masterminds/vcs> (package)
- <https://github.com/Masterminds/vcs/releases/tag/v1.13.2> (web)

## Sources

- CVE List: [CVE-2022-21235](https://www.cve.org/CVERecord?id=CVE-2022-21235), CVE Terms of Use, modified 2024-09-17
- GitHub Advisory Database: [GHSA-6635-c626-vj4r](https://github.com/advisories/GHSA-6635-c626-vj4r), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2022-0414](https://pkg.go.dev/vuln/GO-2022-0414), CC-BY-4.0, modified 2026-03-16
- NVD: [CVE-2022-21235](https://nvd.nist.gov/vuln/detail/CVE-2022-21235), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-21235 · Whole record: https://cve.day/CVE-2022-21235.json · Rebuilt by cve.day 2026-11-25T22:58:10.359Z
