Vulnerability · Published Mar 14, 2022 · Assigned by snyk
CVE-2022-21187Command Injection
High 8.1
In plain English
A high-severity security flaw in libvcs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.6% (higher than 90% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)8.1High
Exploit odds (30 days)3.6%top 10.4% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
The package libvcs before 0.11.1 are vulnerable to Command Injection via argument injection. When calling the update_repo function (when using hg), the url parameter is passed to the hg clone command. By injecting some hg options it was possible to get arbitrary command execution.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | libvcs | 0.11.1 | GHSA-mv2w-4jqc-6fg4 |
| PyPI | libvcs | 0.11.1 | PYSEC-2022-163 |
| PyPI | vcspull | 1.11.1 | GHSA-mv2w-4jqc-6fg4 |
| PyPI | vcspull | 1.11.1 | PYSEC-2026-563 |
Affected products (as reported)
References
- https://snyk.io/vuln/SNYK-PYTHON-LIBVCS-2421204 x_refsource_MISC
- https://github.com/vcs-python/libvcs/blob/v0.11.1/CHANGES%23libvcs-0111-2022-03-12 x_refsource_MISC
- https://github.com/vcs-python/libvcs/pull/306 x_refsource_MISC