{"id":"CVE-2022-21187","published":"2022-03-14T17:15:17Z","modified":"2024-09-16T18:13:45Z","title":"Command Injection","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.03624,"percentile":0.89792,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-PYTHON-LIBVCS-2421204","tags":["x_refsource_MISC"]},{"url":"https://github.com/vcs-python/libvcs/blob/v0.11.1/CHANGES%23libvcs-0111-2022-03-12","tags":["x_refsource_MISC"]},{"url":"https://github.com/vcs-python/libvcs/pull/306","tags":["x_refsource_MISC"]}],"priority":{"score":23.6,"factors":[{"name":"EPSS percentile","points":17.96},{"name":"CVSS severity","points":5.67}]},"affectedVersions":[{"vendor":"n/a","product":"libvcs","versions":[">= unspecified, < 0.11.1"]}],"affected":[{"ecosystem":"PyPI","package":"libvcs","vulnerableRanges":["<0.11.1"],"patched":["0.11.1"],"from":["GHSA-mv2w-4jqc-6fg4","PYSEC-2022-163"],"provenance":"source"},{"ecosystem":"PyPI","package":"vcspull","vulnerableRanges":["<1.11.1"],"patched":["1.11.1"],"from":["GHSA-mv2w-4jqc-6fg4","PYSEC-2026-563"],"provenance":"source"}],"summary":{"text":"The libvcs Python package, before version 0.11.1, contains a command injection flaw in its update_repo function when used with Mercurial (hg): the url parameter is passed unsanitised to the hg clone command. An attacker who can supply a crafted url value can inject hg options to achieve arbitrary command execution, with the attack requiring network access and no authentication or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:38:52Z"},"euvd":{"id":"EUVD-2022-0137","exploited":false,"provenance":"source"}}