Advisory

GHSA-g397-v4w5-4m79

Also known as: CVE-2022-21223, SNYK-RUBY-COCOAPODSDOWNLOADER-2414280

Summary

Command injection in cocoapods-downloader

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-04-02 00:00 UTC
Modified
2026-07-08 06:50 UTC

Affected packages and fixes

cocoapods-downloader

RubyGems · All systems

Affected

  • introduced 0, fixed 1.6.2 (ecosystem)

Fixed versions

1.6.2

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences