CVE-2022-21235
github.com/Masterminds/vcs: Command Injection via argument injection
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA. Rated lower by Red Hat (high).
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 and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| go::GitHub Security Advisory Go | github.com/Masterminds/vcs | 1.13.2 |
References
- https://access.redhat.com/security/cve/CVE-2022-21235
- https://github.com/Masterminds/vcs
- https://github.com/Masterminds/vcs/commit/922a5122330ea8fbe56352a0172ddb6bf019cd22
- https://github.com/Masterminds/vcs/pull/105
- https://github.com/Masterminds/vcs/releases/tag/v1.13.2
- https://github.com/Masterminds/vcs/security/advisories/GHSA-6635-c626-vj4r
- https://nvd.nist.gov/vuln/detail/CVE-2022-21235
- https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMMASTERMINDSVCS-2437078