Live threats

All CVEs / Libvcs Project

CVE-2022-21187Libvcs Project Libvcs

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
4.9%
probability of exploitation in 30 days · percentile 93
Auth required
No
Published
Mar 14, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-88
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Libvcs.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI libvcs < 0.11.1 0.11.1 pip install "libvcs>=0.11.1"
PyPI libvcs < 0.11.1 0.11.1 pip install "libvcs>=0.11.1"
PyPI vcspull < 1.11.1 1.11.1 pip install "vcspull>=1.11.1"
PyPI vcspull < 1.11.1 1.11.1 pip install "vcspull>=1.11.1"

Per OSV / GitHub Advisories (GHSA-mv2w-4jqc-6fg4, PYSEC-2022-163, PYSEC-2026-563). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
libvcs_projectlibvcs< 0.11.1

Official sources

References

Links published by the sources. Open them with care.