NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
💎
💎 RubyGems
Not in CISA KEV
HIGH severity

CVE-2022-24440 — cocoapods-downloader

HIGHFix: CocoaPods/cocoapods-downloader#124

CVE-2022-24440 is a high-severity (CVSS 8.1) CWE-88 vulnerability in cocoapods-downloader. A fix is available for cocoapods-downloader — see the affected versions and patch details below.

Command Injection

Also known asGHSA-7627-mp87-jf6qSNYK-RUBY-COCOAPODSDOWNLOADER-2414278
Published
Updated
Affected
2 pkgs
Patched
2 / 2
Exploits
None indexed
Exploitation data as of Nov 4, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
2.6%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs86th percentile — riskier than 86% of all scored CVEsHighest risk
0.09%1.17%2.24%3.32%0.7%2.6%May 26Sep 26Nov 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

2 pkgs affected
💎cocoapods-downloader💎cocoapods-downloader

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects RubyGems packages — download data is not available via public APIs for these ecosystems.

Description

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.

Affected Packages

2 total 2 fixed
EcosystemPackageVulnerable rangeFix
💎RubyGemscocoapods-downloaderall versions1.6.0bundle update cocoapods-downloader --conservative
💎RubyGemscocoapods-downloader≥ 1.6.2&&< 1.6.31.6.3bundle update cocoapods-downloader --conservative

Affected Products

1 product · 2 configurations
Application
cocoapods-downloadercocoapods
< 1.6.0
1 version
1.6.2

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for cocoapods-downloader, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update cocoapods-downloader to 1.6.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2022-24440 is resolved across your whole dependency graph.

  3. Workarounds

    Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is CVE-2022-24440 in your dependencies?

Find it across RubyGems, including transitive dependencies.

CVE-2022-24440: cocoapods — Fixed in 1.6.0