Command Injection Affecting cocoapods-downloader package, versions <1.6.0 >=1.6.2, <1.6.3
Threat Intelligence
Exploit Maturity
Proof of concept
EPSS
0.24% (65th
percentile)
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-RUBY-COCOAPODSDOWNLOADER-2414278
- published 1 Apr 2022
- disclosed 2 Mar 2022
- credit Alessio Della Libera of Snyk Research Team
Introduced: 2 Mar 2022
CVE-2022-24440 Open this link in a new tabHow to fix?
Upgrade cocoapods-downloader
to version 1.6.0, 1.6.3 or higher.
Overview
cocoapods-downloader is an A small library for downloading files from remotes in a folder.
Affected versions of this package 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.
PoC
require 'cocoapods-downloader'
options = { :git => '--upload-pack=touch ./HELLO1;', :branch => 'foo'}
options = Pod::Downloader.preprocess_options(options)
# ls -la
CVSS Scores
version 3.1