CVE-2022-21187Libvcs Project Libvcs
Critical 9.8 No auth needed
Follow: this CVE · Libvcs Project · Libvcs Project Libvcs We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Libvcs.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| libvcs_project | libvcs | < 0.11.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Release Notes Third Party Advisory
- github.com Patch Third Party Advisory
- snyk.io Third Party Advisory