{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-21187","id":"CVE-2022-21187","title":"Command Injection","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.","descriptionLong":"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":"2022-03-14T17:15:17.020Z","updated":"2026-10-28T02:30:22.609657978Z","reserved":"2022-02-24T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"snyk","metric":{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"snyk"},"metrics":[{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"high","source":"GitHub"},{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"high","source":"OSV"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"snyk"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"snyk.io"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"NVD"}],"rating":"high","products":["libvcs"],"affectedProducts":[{"vendor":"n/a","product":"libvcs","defaultStatus":null,"versions":[{"lessThan":"0.11.1","status":"affected","version":"unspecified","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"libvcs","purl":"pkg:pypi/libvcs","ranges":["<0.11.1"],"fixed":["0.11.1"],"advisory":"GHSA-mv2w-4jqc-6fg4"},{"ecosystem":"PyPI","name":"vcspull","purl":"pkg:pypi/vcspull","ranges":["<1.11.1"],"fixed":["1.11.1"],"advisory":"GHSA-mv2w-4jqc-6fg4"}],"cwes":["CWE-88","CWE-74","CWE-77"],"aliases":["GHSA-mv2w-4jqc-6fg4","PYSEC-2022-163","PYSEC-2026-563","SNYK-PYTHON-LIBVCS-2421204"],"references":[{"url":"https://snyk.io/vuln/SNYK-PYTHON-LIBVCS-2421204","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/vcs-python/libvcs/blob/v0.11.1/CHANGES%23libvcs-0111-2022-03-12","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","web"]},{"url":"https://github.com/vcs-python/libvcs/pull/306","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21187.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21187","tags":["advisory"]},{"url":"https://github.com/vcs-python/vcspull/commit/e1b77128a1fa0754625b5f43d8bc47956f21f33e","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/libvcs/PYSEC-2022-163.yaml","tags":["web"]},{"url":"https://github.com/vcs-python/libvcs/blob/master/CHANGES#libvcs-0111-2022-03-12","tags":["web"]},{"url":"https://github.com/vcs-python/vcspull/blob/master/CHANGES#vcspull-1111-2022-03-12","tags":["web"]},{"url":"https://pypi.org/project/vcspull","tags":["package"]},{"url":"https://github.com/advisories/GHSA-mv2w-4jqc-6fg4","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.03624,"epssPercentile":0.89745,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-21187","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21187","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-21187","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-mv2w-4jqc-6fg4","ok":true,"note":"GHSA-mv2w-4jqc-6fg4"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-21187","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}