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.
CVE-2022-24440 - Critical Severity Vulnerability
Vulnerable Library - cocoapods-downloader-1.4.0.gem
Library home page: https://rubygems.org/gems/cocoapods-downloader-1.4.0.gem
Path to dependency file: /ios/Gemfile.lock
Path to vulnerable library: /home/wss-scanner/.gem/ruby/2.7.0/cache/cocoapods-downloader-1.4.0.gem
Dependency Hierarchy: - cocoapods-1.10.1.gem (Root Library) - :x: **cocoapods-downloader-1.4.0.gem** (Vulnerable Library)
Found in HEAD commit: 570c9f91ae551da2ffeb15a6cbfe34153451f434
Found in base branch: develop
Vulnerability Details
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.
Publish Date: 2022-04-01
URL: CVE-2022-24440
CVSS 3 Score Details (9.8)
Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: High - Integrity Impact: High - Availability Impact: High
For more information on CVSS3 Scores, click here.Suggested Fix
Type: Upgrade version
Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-24440
Release Date: 2022-04-01
Fix Resolution: cocoapods-downloader - 1.6.0,1.6.3
Step up your Open Source Security Game with Mend here