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

EcosystemPackageFixed inAdvisory
PyPIlibvcs0.11.1GHSA-mv2w-4jqc-6fg4
PyPIlibvcs0.11.1PYSEC-2022-163
PyPIvcspull1.11.1GHSA-mv2w-4jqc-6fg4
PyPIvcspull1.11.1PYSEC-2026-563

Affected products (as reported)

VendorProductVersions
n/a libvcs unspecified – before 0.11.1

References