Vulnerability · Published Apr 1, 2022 · Assigned by snyk

CVE-2022-21223Command 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 1.7% (higher than 77% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.1High
Exploit odds (30 days)1.7%top 22.9% 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.2 are vulnerable to Command Injection via hg argument injection. When calling the download function (when using hg), the url (and/or revision, tag, branch) is passed to the hg clone command 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.2GHSA-g397-v4w5-4m79

Affected products (as reported)

VendorProductVersions
n/a cocoapods-downloader unspecified – before 1.6.2

References