CVE-2022-24440: Command injection in cocoapods-downloader
8.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.83949%
CWE
Published
4/2/2022
Updated
5/4/2023
KEV Status
No
Technology
Ruby
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
cocoapods-downloader | rubygems | < 1.6.0 | 1.6.0 |
cocoapods-downloader | rubygems | >= 1.6.2, < 1.6.3 | 1.6.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from how preprocess_options
in git.rb
handled user-supplied git
and branch
parameters. The patch introduced validation to block inputs starting with --
or containing --
, confirming the absence of this check in the original code. The CWE-88 (Argument Injection) mapping and the commit diff directly implicate this function. The test case added in git_spec.rb
also targets this function's insecure input handling, reinforcing its role in the vulnerability.