Loading...
Skip to main content

CVE-2022-24440 — Command injection in cocoapods-downloader — CVE...

HIGH

Command injection in cocoapods-downloader

Published April 2, 2022Updated July 8, 2026Source: osv

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.

Advisory Timeline

  • First published April 2, 2022 (1655 days ago).
  • Last revised July 8, 2026 — 1558 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update cocoapods-downloader to 1.6.0 or later
gem install cocoapods-downloader -v 1.6.0
Bundler
Update cocoapods-downloader to 1.6.3 or later
gem install cocoapods-downloader -v 1.6.3

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: rubygems (1).

PackageEcosystemAffectedFixed In
cocoapods-downloader
rubygems
0.1.0, 0.1.1, 0.1.2, 0.2.0 (+32 more)1.6.0
cocoapods-downloader
rubygems
1.6.21.6.3

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2022-24440?
Command injection in cocoapods-downloader This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.1/10).
How do I check if my project is affected by CVE-2022-24440?
CVE-2022-24440 affects cocoapods-downloader. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-24440 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.1

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-7627-mp87-jf6q
SNYK-RUBY-COCOAPODSDOWNLOADER-2414278

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies