Command injection in cocoapods-downloader
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-88.
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | cocoapods-downloader | before 1.6.0; 1.6.2 and later; before 1.6.3 | 1.6.0, 1.6.3 | Patch available | CNA |
| — | cocoapods-downloader (RubyGems) | before 1.6.0 | 1.6.0 | Patch available | GHSA-7627-mp87-jf6q |
| — | cocoapods-downloader (RubyGems) | 1.6.2 to before 1.6.3 | 1.6.3 | Patch available | GHSA-7627-mp87-jf6q |
- cocoapods-downloader Vendor— Affected before 1.6.0; 1.6.2 and later; before 1.6.3 Fixed in 1.6.0, 1.6.3 Patch available CNA
- cocoapods-downloader (RubyGems) Vendor— Affected before 1.6.0 Fixed in 1.6.0 Patch available GHSA-7627-mp87-jf6q
- cocoapods-downloader (RubyGems) Vendor— Affected 1.6.2 to before 1.6.3 Fixed in 1.6.3 Patch available GHSA-7627-mp87-jf6q
Remediation
- Fix · CNA cocoapods-downloader Fixed in 1.6.0, 1.6.3
- Fix · GHSA-7627-mp87-jf6q cocoapods-downloader (RubyGems) Fixed in 1.6.0 Advisory →
- Fix · GHSA-7627-mp87-jf6q cocoapods-downloader (RubyGems) Fixed in 1.6.3 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-24440
- 2026-10-03 Alias added: GHSA-7627-mp87-jf6q
References
Patch 2
Other 4
- https://github.com/CocoaPods/cocoapods-downloader/commit/52a0d54464932a90ded5a59c71a016e8dec0ca84
- https://github.com/CocoaPods/cocoapods-downloader/commit/b70bc39c75645aa6d4a01a3ca6de40477c84f4b5
- https://github.com/CocoaPods/cocoapods-downloader
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/cocoapods-downloader/CVE-2022-24440.yml
More Cocoapods-downloader vulnerabilities
- TI-2022-05616 Command injection in cocoapods-downloader CVSS 3.1CRITICAL 9.8
Sources
- CVE-2022-24440 · CVE Program
- CVE-2022-24440 · NVD
- FIRST EPSS
- GHSA-7627-mp87-jf6q · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences