CVE-2022-21235
Vcs Project Vcs vulnerability
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 products
Vcs. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Vcs Project Vcs runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/Masterminds/vcs/pull/105 · Patch
- snyk.io/vuln/SNYK-GOLANG-GITHUBCOMMASTERMINDSVCS-2437078 · Third Party Advisory
- github.com/Masterminds/vcs/security/advisories/GHSA-6635-c626-vj4r
- github.com/Masterminds/vcs/commit/922a5122330ea8fbe56352a0172ddb6bf019cd22
- github.com/Masterminds/vcs/releases/tag/v1.13.2
- nvd.nist.gov/vuln/detail/CVE-2022-21235
- github.com/advisories/GHSA-6635-c626-vj4r
- nvd.nist.gov/vuln/detail/CVE-2022-21235
- cve.org/CVERecord?id=CVE-2022-21235
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.