{"cve":"CVE-2022-21187","nvd":{"published":"2022-03-14T18:15:07.917","modified":"2026-06-17T04:25:42.453","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-88"],"references":["https://github.com/vcs-python/libvcs/blob/v0.11.1/CHANGES%23libvcs-0111-2022-03-12","https://github.com/vcs-python/libvcs/pull/306","https://snyk.io/vuln/SNYK-PYTHON-LIBVCS-2421204","https://github.com/vcs-python/libvcs/blob/v0.11.1/CHANGES%23libvcs-0111-2022-03-12","https://github.com/vcs-python/libvcs/pull/306"],"products":["libvcs_project:libvcs"],"source":"nvd","synced_at":"2026-10-19T21:29:06.454770966+00:00"},"epss":{"cve":"CVE-2022-21187","score":0.03624,"percentile":0.89524,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-mv2w-4jqc-6fg4","url":"https://osv.dev/vulnerability/GHSA-mv2w-4jqc-6fg4","summary":"Command injection in libvcs and vcspull","modified":"2026-06-29T12:26:21.761856147Z","packages":[{"ecosystem":"PyPI","name":"libvcs","purl":"pkg:pypi/libvcs","ranges":["<0.11.1"],"fixed":["0.11.1"]},{"ecosystem":"PyPI","name":"vcspull","purl":"pkg:pypi/vcspull","ranges":["<1.11.1"],"fixed":["1.11.1"]}]},{"id":"PYSEC-2022-163","url":"https://osv.dev/vulnerability/PYSEC-2022-163","summary":"","modified":"2026-06-29T12:26:21.761856147Z","packages":[{"ecosystem":"PyPI","name":"libvcs","purl":"pkg:pypi/libvcs","ranges":["<0.11.1"],"fixed":["0.11.1"]}]},{"id":"PYSEC-2026-563","url":"https://osv.dev/vulnerability/PYSEC-2026-563","summary":"Command injection in libvcs and vcspull","modified":"2026-07-01T20:23:11.167334Z","packages":[{"ecosystem":"PyPI","name":"vcspull","purl":"pkg:pypi/vcspull","ranges":["<1.11.1"],"fixed":["1.11.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}