Vulnerability · Published Apr 1, 2022 · Assigned by snyk
CVE-2022-21235Command Injection
High 8.1
In plain English
A high-severity security flaw in github.com/Masterminds/vcs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.6% (higher than 76% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)8.1High
Exploit odds (30 days)1.6%top 24.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/Masterminds/vcs | 1.13.3 | GO-2022-0414 |
| Go | github.com/Masterminds/vcs | 1.13.2 | GHSA-6635-c626-vj4r |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | github.com/Masterminds/vcs | unspecified – before 1.13.3 |
References
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMMASTERMINDSVCS-2437078 x_refsource_MISC
- https://github.com/Masterminds/vcs/pull/105 x_refsource_MISC