Advisory

GHSA-7627-mp87-jf6q

Also known as: CVE-2022-24440, SNYK-RUBY-COCOAPODSDOWNLOADER-2414278

Summary

Command injection in cocoapods-downloader

Details

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.

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.0 (ecosystem)

Fixed versions

1.6.0

Fix

The export has no generic command for this ecosystem.

cocoapods-downloader

RubyGems · All systems

Affected

  • introduced 1.6.2, fixed 1.6.3 (ecosystem)

Fixed versions

1.6.3

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