Vulnerability Details : CVE-2022-21187
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.
Products affected by CVE-2022-21187
- cpe:2.3:a:libvcs_project:libvcs:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-21187
0.45%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 75 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-21187
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.5
|
HIGH | AV:N/AC:L/Au:N/C:P/I:P/A:P |
10.0
|
6.4
|
NIST | |
9.8
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
3.9
|
5.9
|
NIST | |
8.1
|
HIGH | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
2.2
|
5.9
|
Snyk |
CWE ids for CVE-2022-21187
-
The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.Assigned by: nvd@nist.gov (Primary)
References for CVE-2022-21187
-
https://github.com/vcs-python/libvcs/pull/306
Alias command injection by tony · Pull Request #306 · vcs-python/libvcs · GitHubPatch;Third Party Advisory
-
https://github.com/vcs-python/libvcs/blob/v0.11.1/CHANGES%23libvcs-0111-2022-03-12
Page not found · GitHub · GitHubRelease Notes;Third Party Advisory
-
https://snyk.io/vuln/SNYK-PYTHON-LIBVCS-2421204
Command Injection in libvcs | CVE-2022-21187 | SnykThird Party Advisory
Jump to