Vulnerability in Libvcs Project
CVE-2022-21187
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.036, 89.7th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Libvcs Project
- Libvcs — versions unspecified
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (dellalibera/dellalibera). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- snyk.io/vuln/SNYK-PYTHON-LIBVCS-2421204 (Third Party Advisory)
- github.com/vcs-python/libvcs/blob/v0.11.1/CHANGES#libvcs-0111-2022-03-12 (Third Party Advisory, Release Notes)
- github.com/vcs-python/libvcs/pull/306 (Patch, Third Party Advisory)