Live threats

All CVEs / Cocoapods

CVE-2022-21223Cocoapods-downloader

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
2.3%
probability of exploitation in 30 days · percentile 84
Auth required
No
Published
Apr 1, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-88
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Cocoapods-downloader.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
RubyGems cocoapods-downloader < 1.6.2 1.6.2 gem "cocoapods-downloader", ">= 1.6.2"

Per OSV / GitHub Advisories (GHSA-g397-v4w5-4m79). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
cocoapodscocoapods-downloader< 1.6.2

Official sources

References

Links published by the sources. Open them with care.