CVE-2022-21187

Source
https://cve.org/CVERecord?id=CVE-2022-21187
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21187.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-21187
Aliases
Published
2022-03-14T17:15:17.020Z
Modified
2026-07-15T01:49:09.995025395Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Command Injection
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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21187.json",
    "cna_assigner": "snyk"
}
References

Affected packages

Git / github.com/vcs-python/libvcs

Affected ranges

Type
GIT
Repo
https://github.com/vcs-python/libvcs
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "cpe": "cpe:2.3:a:libvcs_project:libvcs:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "0.11.1"
        }
    ],
    "source": [
        "AFFECTED_FIELD",
        "CPE_RANGE"
    ]
}

Affected versions

v0.*
v0.1.0
v0.1.1
v0.1.2
v0.1.3
v0.1.4
v0.1.5
v0.1.6
v0.1.7
v0.10.0
v0.10.1
v0.11.0
v0.2.0
v0.2.1
v0.2.2
v0.2.3
v0.3.0
v0.3.1
v0.3.1post1
v0.3.2
v0.3.3
v0.4.0
v0.4.0rc1
v0.4.2
v0.4.3
v0.4.4
v0.5.0
v0.9.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21187.json"