PYSEC-2026-563
Vulnerability from pysec - Published: 2026-06-29 11:50 - Updated: 2026-07-01 20:23
VLAI?
Details
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 ?
8.1 (High)
Impacted products
| Name | purl | vcspull | pkg:pypi/vcspull |
|---|
Aliases
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "vcspull",
"purl": "pkg:pypi/vcspull"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.11.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.0.10",
"0.0.6",
"0.0.7",
"0.0.8",
"0.0.8.1",
"0.0.8.2",
"0.0.8.3",
"0.0.8.4",
"0.0.9",
"0.0.9.1",
"0.1.0",
"0.1.1",
"0.2.0",
"0.2.1",
"0.2.2",
"0.9.0",
"1.0.0",
"1.0.1",
"1.0.2",
"1.0.3",
"1.1.0",
"1.10.0",
"1.11.0",
"1.2.0",
"1.3.0",
"1.3.0.post1",
"1.3.0.post2",
"1.3.1",
"1.4.0",
"1.4.1",
"1.4.2",
"1.4.3",
"1.5.0",
"1.5.0a1",
"1.5.0a2",
"1.5.0a3",
"1.5.0a4",
"1.6.0",
"1.6.1",
"1.7.0",
"1.7.0.post0",
"1.8.0",
"1.8.1",
"1.9.0",
"1.9.0.post1",
"1.9.0.post2"
]
}
],
"aliases": [
"CVE-2022-21187",
"GHSA-mv2w-4jqc-6fg4"
],
"details": "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.",
"id": "PYSEC-2026-563",
"modified": "2026-07-01T20:23:11.167334Z",
"published": "2026-06-29T11:50:31.953566Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-21187"
},
{
"type": "WEB",
"url": "https://github.com/vcs-python/libvcs/pull/306"
},
{
"type": "WEB",
"url": "https://github.com/vcs-python/vcspull/commit/e1b77128a1fa0754625b5f43d8bc47956f21f33e"
},
{
"type": "WEB",
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/libvcs/PYSEC-2022-163.yaml"
},
{
"type": "WEB",
"url": "https://github.com/vcs-python/libvcs/blob/master/CHANGES#libvcs-0111-2022-03-12"
},
{
"type": "WEB",
"url": "https://github.com/vcs-python/libvcs/blob/v0.11.1/CHANGES%23libvcs-0111-2022-03-12"
},
{
"type": "WEB",
"url": "https://github.com/vcs-python/vcspull/blob/master/CHANGES#vcspull-1111-2022-03-12"
},
{
"type": "WEB",
"url": "https://snyk.io/vuln/SNYK-PYTHON-LIBVCS-2421204"
},
{
"type": "PACKAGE",
"url": "https://pypi.org/project/vcspull"
},
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-mv2w-4jqc-6fg4"
}
],
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "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",
"type": "CVSS_V4"
}
],
"summary": "Command injection in libvcs and vcspull"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…