Every CVE Search/ Get API key

CVE-2022-21187

Command Injection

8.1 HighFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
High
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

3.62%Up 2.1 points since Mar 15, 2022
90%50%10%1%

What each source reports

CVE List Score used 8.1

Command Injection

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.

Record
CVE-2022-21187
CVSS 3.1
8.1 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
EUVDEUVD-2022-0137 8.1

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.

Record
EUVD-2022-0137
CVSS 3.1
8.1 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-03
GitHub AdvisoriesGHSA-mv2w-4jqc-6fg4 9.3

Command injection in libvcs and vcspull

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.

Record
GHSA-mv2w-4jqc-6fg4
CVSS 4.0
9.3 CriticalCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CVSS 3.1
8.1 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-74, CWE-77
Updated
2026-11-02
NVD 8.1

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.

Record
CVE-2022-21187
CVSS 3.1
8.1 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.5 HighAV:N/AC:L/Au:N/C:P/I:P/A:P
Weakness
CWE-88
Updated
2026-11-02
OSV 8.1

Command Injection

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.

Record
CVE-2022-21187
CVSS 3.1
8.1 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVGHSA-mv2w-4jqc-6fg4 9.3

Command injection in libvcs and vcspull

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.

Record
GHSA-mv2w-4jqc-6fg4
CVSS 4.0
9.3 CriticalCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CVSS 3.1
8.1 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-74, CWE-77
Updated
2026-11-02
OSVPYSEC-2026-563 9.3

Command injection in libvcs and vcspull

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.

Record
PYSEC-2026-563
CVSS 4.0
9.3 CriticalCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CVSS 3.1
8.1 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVPYSEC-2022-163 No score

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.

Record
PYSEC-2022-163
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
libvcs
PyPI
before 0.11.1
0.11.1
vcspull
PyPI
before 1.11.1
1.11.1
libvcs
PyPI
before 0.11.1, plus listed versions
0.1.20.1.30.1.40.1.50.1.6
Show 26 moreShow less
0.1.70.10.00.10.10.11.00.2.00.2.10.2.20.2.30.3.00.3.10.3.1.post10.3.20.3.30.4.00.4.0rc10.4.0rc20.4.10.4.20.4.30.4.40.5.00.5.0a10.5.0a20.9.00.9.0a10.9.0a2
0.11.1
vcspull
PyPI
before 1.11.1, plus listed versions
0.0.100.0.60.0.70.0.80.0.8.1
Show 41 moreShow less
0.0.8.20.0.8.30.0.8.40.0.90.0.9.10.1.00.1.10.2.00.2.10.2.20.9.01.0.01.0.11.0.21.0.31.1.01.10.01.11.01.2.01.3.01.3.0.post11.3.0.post21.3.11.4.01.4.11.4.21.4.31.5.01.5.0a11.5.0a21.5.0a31.5.0a41.6.01.6.11.7.01.7.0.post01.8.01.8.11.9.01.9.0.post11.9.0.post2
1.11.1

History

History
RecordedChangedSources
aliases, publishedEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2022-21187 is a high vulnerability (CVSS 8.1) in Libvcs Project Libvcs, published March 14, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.62%, the 89th percentile. Fixed in libvcs 0.11.1.

References

Show 5 moreShow less
MoveEnter Open