{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-21187","published":"2022-03-14T18:15:07.917000Z","last_modified":"2026-06-17T04:25:42.453000Z","status":"Modified","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-88"],"cpes":[{"criteria":"cpe:2.3:a:libvcs_project:libvcs:*:*:*:*:*:*:*:*","part":"a","vendor":"libvcs_project","product":"libvcs","version_end_excluding":"0.11.1"}],"cpes_truncated":false,"vendors":["libvcs_project"],"products":["libvcs_project/libvcs"],"epss":{"score":0.04929,"percentile":0.92918,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-mv2w-4jqc-6fg4","ecosystem":"PyPI","name":"libvcs","purl":"pkg:pypi/libvcs","ranges":[{"introduced":"0","fixed":"0.11.1"}],"versions":["0.1.2","0.1.3","0.1.4","0.1.5","0.1.6","0.1.7","0.10.0","0.10.1","0.11.0","0.2.0","0.2.1","0.2.2","0.2.3","0.3.0","0.3.1","0.3.1.post1","0.3.2","0.3.3","0.4.0","0.4.0rc1","0.4.0rc2","0.4.1","0.4.2","0.4.3","0.4.4","0.5.0","0.5.0a1","0.5.0a2","0.9.0","0.9.0a1","0.9.0a2"],"versions_truncated":false},{"advisory":"PYSEC-2022-163","ecosystem":"PyPI","name":"libvcs","purl":"pkg:pypi/libvcs","ranges":[{"introduced":"0","fixed":"0.11.1"}],"versions":["0.1.2","0.1.3","0.1.4","0.1.5","0.1.6","0.1.7","0.10.0","0.10.1","0.11.0","0.2.0","0.2.1","0.2.2","0.2.3","0.3.0","0.3.1","0.3.1.post1","0.3.2","0.3.3","0.4.0","0.4.0rc1","0.4.0rc2","0.4.1","0.4.2","0.4.3","0.4.4","0.5.0","0.5.0a1","0.5.0a2","0.9.0","0.9.0a1","0.9.0a2"],"versions_truncated":false},{"advisory":"GHSA-mv2w-4jqc-6fg4","ecosystem":"PyPI","name":"vcspull","purl":"pkg:pypi/vcspull","ranges":[{"introduced":"0","fixed":"1.11.1"}],"versions":["0.0.10","0.0.6","0.0.7","0.0.8","0.0.8.1","0.0.8.2","0.0.8.3","0.0.8.4","0.0.9","0.0.9.1","0.1.0","0.1.1","0.2.0","0.2.1","0.2.2","0.9.0","1.0.0","1.0.1","1.0.2","1.0.3","1.1.0","1.10.0","1.11.0","1.2.0","1.3.0","1.3.0.post1","1.3.0.post2","1.3.1","1.4.0","1.4.1","1.4.2","1.4.3","1.5.0","1.5.0a1","1.5.0a2","1.5.0a3","1.5.0a4","1.6.0","1.6.1","1.7.0","1.7.0.post0","1.8.0","1.8.1","1.9.0","1.9.0.post1","1.9.0.post2"],"versions_truncated":false},{"advisory":"PYSEC-2026-563","ecosystem":"PyPI","name":"vcspull","purl":"pkg:pypi/vcspull","ranges":[{"introduced":"0","fixed":"1.11.1"}],"versions":["0.0.10","0.0.6","0.0.7","0.0.8","0.0.8.1","0.0.8.2","0.0.8.3","0.0.8.4","0.0.9","0.0.9.1","0.1.0","0.1.1","0.2.0","0.2.1","0.2.2","0.9.0","1.0.0","1.0.1","1.0.2","1.0.3","1.1.0","1.10.0","1.11.0","1.2.0","1.3.0","1.3.0.post1","1.3.0.post2","1.3.1","1.4.0","1.4.1","1.4.2","1.4.3","1.5.0","1.5.0a1","1.5.0a2","1.5.0a3","1.5.0a4","1.6.0","1.6.1","1.7.0","1.7.0.post0","1.8.0","1.8.1","1.9.0","1.9.0.post1","1.9.0.post2"],"versions_truncated":false}],"severity":"critical","priority_score":74,"links":{"html_es":"/es/cve/CVE-2022-21187/","html_en":"/en/cve/CVE-2022-21187/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-21187","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-21187"},"untrusted":{"vendor_name":"Libvcs Project","product_name":"Libvcs","desc_en":"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":[],"references":[{"url":"https://github.com/vcs-python/libvcs/blob/v0.11.1/CHANGES%23libvcs-0111-2022-03-12","tags":["Release Notes","Third Party Advisory"]},{"url":"https://github.com/vcs-python/libvcs/pull/306","tags":["Patch","Third Party Advisory"]},{"url":"https://snyk.io/vuln/SNYK-PYTHON-LIBVCS-2421204","tags":["Third Party Advisory"]}]}}