VULNERABILITY INTELLIGENCE
CVE-2022-21187
CVSS score8.1 HIGH
EPSS probability3.62%
CISA KEVNot currently listed
Published2022-03-14
Last modified2026-06-17
CVSS vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
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.
Weakness classification
- CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
Primary references
- report@snyk.io — Release Notes, Third Party Advisory
- report@snyk.io — Patch, Third Party Advisory
- report@snyk.io — Third Party Advisory
- af854a3a-2127-422b-91ae-364da2661108 — Release Notes, Third Party Advisory
- af854a3a-2127-422b-91ae-364da2661108 — Patch, Third Party Advisory
- af854a3a-2127-422b-91ae-364da2661108 — Third Party Advisory