PT-2022-16698 · Unknown · Cocoapods-Downloader

Alessio Della Libera

·

Published

2022-04-01

·

Updated

2026-05-04

·

CVE-2022-24440

CVSS v3.1

8.1

High

VectorAV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions cocoapods-downloader versions prior to 1.6.0 cocoapods-downloader versions 1.6.2 through 1.6.3
Description The issue concerns Command Injection via git argument injection. When the Pod::Downloader.preprocess options function is called and git is used, both the git and branch parameters are passed to the git ls-remote subcommand in a way that allows additional flags to be set, which can be used to perform a command injection.
Recommendations For versions prior to 1.6.0, update to version 1.6.0 or later. For versions 1.6.2 through 1.6.3, update to version 1.6.3 or later. As a temporary workaround, consider restricting the use of the Pod::Downloader.preprocess options function when using git until a patch is available.

Exploit

Fix

Special Elements Injection

Argument Injection

Weakness Enumeration

Related Identifiers

CVE-2022-24440
GHSA-7627-MP87-JF6Q
SNYK-RUBY-COCOAPODSDOWNLOADER-2414278

Affected Products

Cocoapods-Downloader