CVE-2022-24440Cocoapods-downloader
Critical 9.8 No auth needed
Follow: this CVE · Cocoapods · Cocoapods-downloader We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 3.0% probability of exploitation in 30 days · percentile 88
- Auth required
- No
- Published
- Apr 1, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-88
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Cocoapods-downloader.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | cocoapods-downloader |
< 1.6.0 |
1.6.0 |
gem "cocoapods-downloader", ">= 1.6.0" |
| RubyGems | cocoapods-downloader |
≥ 1.6.2 < 1.6.3 |
1.6.3 |
gem "cocoapods-downloader", ">= 1.6.3" |
Per OSV / GitHub Advisories (GHSA-7627-mp87-jf6q). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| cocoapods | cocoapods-downloader | < 1.6.0 |
| cocoapods | cocoapods-downloader | 1.6.2 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory
- snyk.io Third Party Advisory