CVE-2022-21223

Source
https://cve.org/CVERecord?id=CVE-2022-21223
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21223.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-21223
Aliases
Published
2022-04-01T17:35:21.022Z
Modified
2026-07-15T01:49:02.883467549Z
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 cocoapods-downloader before 1.6.2 are vulnerable to Command Injection via hg argument injection. When calling the download function (when using hg), the url (and/or revision, tag, branch) is passed to the hg clone command in a way that additional flags can be set. The additional flags can be used to perform a command injection.

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

Affected packages

Git / github.com/cocoapods/cocoapods-downloader

Affected ranges

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

Affected versions

0.*
0.1.0
0.1.1
0.1.2
0.2.0
0.3.0
0.4.0
0.4.1
0.5.0
0.6.0
0.6.1
0.7.2
0.8.0
0.8.1
0.9.0
0.9.1
0.9.2
0.9.3
1.*
1.0.0.beta.1
1.0.0.beta.2
1.0.0.beta.3
1.0.0.rc.1
1.1.2
1.1.3
1.2.1
1.2.2
1.4.0
1.6.0
1.6.1
v0.*
v0.7.0
v0.7.1

Database specific

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