PT-2022-14911 · Libvcs · Libvcs

·

CVE-2022-21187

·

Published

2022-03-14

·

Updated

2026-06-29

CVSS v4.0

9.3

Critical

VectorAV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions libvcs versions prior to 0.11.1
Description The issue concerns Command Injection via argument injection. When the update repo function is called, specifically when using hg, the url parameter is passed to the hg clone command. This allows for the injection of hg options, potentially leading to arbitrary command execution.
Recommendations For versions prior to 0.11.1, update to version 0.11.1 or later to resolve the issue. As a temporary workaround, consider restricting the use of the update repo function when using hg until a patch is applied. Avoid using the url parameter in the affected function to minimize the risk of exploitation.

Exploit

Fix

Command Injection

Special Elements Injection

Argument Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2022-21187
GHSA-MV2W-4JQC-6FG4
PYSEC-2022-163
PYSEC-2026-563
SNYK-PYTHON-LIBVCS-2421204

Affected Products

Libvcs