CVE-2022-24440 json
Command Injection
published 2022-04-01 4 y ago modified 2026-07-08 4 mo ago also GHSA-7627-mp87-jf6q , EUVD-2022-1661
- cvss
- 8.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.6%
- EPSS 2.6% chance of exploitation in 30 days, percentile 85%
- public exploits
- 0
- none known
Summary
The package cocoapods-downloader before 1.6.0, from 1.6.2 and before 1.6.3 are vulnerable to Command Injection via git argument injection. When calling the Pod::Downloader.preprocess_options function and using git, both the git and branch parameters are passed to the git ls-remote subcommand 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.0, 1.6.3
- n/a cocoapods-downloader 1.6.0, 1.6.3
Exploit prediction
2.62% chance of exploitation in the next 30 days, higher than 85% 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.0 >=1.6.2, <1.6.3 |
1.6.0 1.6.3 |
Affected products
- n/a cocoapods-downloader
Classification
References
-
github.com
/CocoaPods/cocoapods-downloader/pull/124
web, patch, third-party-advisory
-
github.com
/CocoaPods/cocoapods-downloader/pull/128
web, patch, third-party-advisory
-
github.com
/CocoaPods/cocoapods-downloader/commit/52a0d54464932a90ded5a59c71a016e8dec0ca84
web
-
github.com
/CocoaPods/cocoapods-downloader/commit/b70bc39c75645aa6d4a01a3ca6de40477c84f4b5
web
-
snyk.io
/vuln/SNYK-RUBY-COCOAPODSDOWNLOADER-2414278
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-24440
advisory
-
github.com
/CocoaPods/cocoapods-downloader
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/cocoapods-downloader/CVE-2022-24440.yml
web
Sources
- CVE List CVE-2022-24440
- GitHub Advisory GHSA-7627-mp87-jf6q
- NVD CVE-2022-24440
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.