cve.bz

CVE-2022-21187

9.8 criticalEPSS 3.6%

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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
3.6% chance of exploitation in the next 30 days; higher than 89% of CVEs (scores of 2026-10-31)
CWE
CWE-88
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-mv2w-4jqc-6fg4PyPIlibvcs<0.11.10.11.1
GHSA-mv2w-4jqc-6fg4PyPIvcspull<1.11.11.11.1
PYSEC-2022-163PyPIlibvcs<0.11.10.11.1
PYSEC-2026-563PyPIvcspull<1.11.11.11.1

References

Check your stackJSON