CVE-2022-24440
JSON

8.1high

Command Injection

Severity
8.1high CVSS:3.1 by snyk
Exploit likelihood
3.03% (higher than 88% of CVEs)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-7627-mp87-jf6qSNYK-RUBY-COCOAPODSDOWNLOADER-2414278

Description

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.

Affected

Product or packageVersionsReported by
cocoapods-downloaderfrom unspecified before 1.6.0, from 1.6.2 before unspecified, from unspecified before 1.6.3CVE List
cocoapods-downloader (RubyGems)before 1.6.0, from 1.6.2 before 1.6.3GitHub Advisory Database
cocoapods cocoapods-downloaderbefore 1.6.0, 1.6.2NVD

All scores

snyk8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

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.

NVD (es)

El paquete cocoapods-downloader versiones anteriores a 1.6.0, a partir de la 1.6.2 y anteriores a 1.6.3 son vulnerables a la inyección de comandos por medio de una inyección de argumentos git. Cuando es llamada a la función Pod::Downloader.preprocess_options y es usado git, tanto el parámetro git como el de la rama son pasados al subcomando git ls-remote de forma que pueden establecerse flags adicionales. Las flags adicionales pueden usarse para llevar a cabo una inyección de comandos

References

Sources

SourceRecordLicence
CVE ListCVE-2022-24440 changed 2024-09-17CVE Terms of Use
GitHub Advisory DatabaseGHSA-7627-mp87-jf6q changed 2026-07-08CC-BY-4.0
NVDCVE-2022-24440 changed 2026-06-17Public domain