Vulnerability · Published Apr 1, 2022 · Assigned by snyk
CVE-2022-24440Command Injection
High 8.1
In plain English
A high-severity security flaw in cocoapods-downloader. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.6% (higher than 86% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| RubyGems | cocoapods-downloader | 1.6.0 | GHSA-7627-mp87-jf6q |
| RubyGems | cocoapods-downloader | 1.6.3 | GHSA-7627-mp87-jf6q |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | cocoapods-downloader | unspecified – before 1.6.01.6.2 – before unspecifiedunspecified – before 1.6.3 |
References
- https://snyk.io/vuln/SNYK-RUBY-COCOAPODSDOWNLOADER-2414278 x_refsource_MISC
- https://github.com/CocoaPods/cocoapods-downloader/pull/124 x_refsource_MISC
- https://github.com/CocoaPods/cocoapods-downloader/pull/128 x_refsource_MISC