Loading...
Skip to main content

CVE-2022-21223 — 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.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.

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.2 or later
gem install cocoapods-downloader -v 1.6.2

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

Affected Packages (1)

Affects 1 ecosystem: rubygems (1).

PackageEcosystemAffectedFixed In
cocoapods-downloader
rubygems
0.1.0, 0.1.1, 0.1.2, 0.2.0 (+34 more)1.6.2

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-21223?
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-21223?
CVE-2022-21223 affects cocoapods-downloader. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-21223 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-g397-v4w5-4m79
SNYK-RUBY-COCOAPODSDOWNLOADER-2414280

Related CVEs

Check if you're affected

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

Scan Your Dependencies