Vulnerability in Cocoapods Cocoapods-Downloader
CVE-2022-24440
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.026, 85.7th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Cocoapods Cocoapods-Downloader — versions 1.6.2
- Cocoapods-Downloader — versions unspecified, 1.6.2
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (dellalibera/dellalibera). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- snyk.io/vuln/SNYK-RUBY-COCOAPODSDOWNLOADER-2414278 (Third Party Advisory)
- github.com/CocoaPods/cocoapods-downloader/pull/124 (Patch, Third Party Advisory)
- github.com/CocoaPods/cocoapods-downloader/pull/128 (Patch, Third Party Advisory)