CVE-2022-21223 json
Command Injection
published 2022-04-01 4 y ago modified 2026-07-08 4 mo ago also GHSA-g397-v4w5-4m79 , EUVD-2022-1732
- cvss
- 8.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.7%
- EPSS 1.7% chance of exploitation in 30 days, percentile 77%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- rubygems cocoapods-downloader 1.6.2
- n/a cocoapods-downloader 1.6.2
- github.com/CocoaPods/cocoapods-downloader#127 pull request
Exploit prediction
1.69% chance of exploitation in the next 30 days, higher than 77% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | cocoapods-downloader | <1.6.2 |
1.6.2 |
Affected products
- n/a cocoapods-downloader
Classification
References
-
github.com
/CocoaPods/cocoapods-downloader/pull/127
web, patch, third-party-advisory
-
snyk.io
/vuln/SNYK-RUBY-COCOAPODSDOWNLOADER-2414280
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-21223
advisory
-
github.com
/CocoaPods/cocoapods-downloader
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/cocoapods-downloader/CVE-2022-21223.yml
web
Sources
- CVE List CVE-2022-21223
- GitHub Advisory GHSA-g397-v4w5-4m79
- NVD CVE-2022-21223
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.