Vulnerability · Published Apr 1, 2022 · Assigned by snyk

CVE-2022-24440Command Injection

High 8.1

In plain English

A high-severity security flaw in cocoapods-downloader. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.6% (higher than 86% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.1High
Exploit odds (30 days)2.6%top 14.5% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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 & fixed versions

EcosystemPackageFixed inAdvisory
RubyGemscocoapods-downloader1.6.0GHSA-7627-mp87-jf6q
RubyGemscocoapods-downloader1.6.3GHSA-7627-mp87-jf6q

Affected products (as reported)

VendorProductVersions
n/a cocoapods-downloader unspecified – before 1.6.01.6.2 – before unspecifiedunspecified – before 1.6.3

References