CVE-2022-24440
Ruby vulnerability analysis and mitigation

Overview

The cocoapods-downloader package versions before 1.6.0, from 1.6.2 and before 1.6.3 contained a Command Injection vulnerability via git argument injection. The vulnerability was discovered on March 2, 2022 and was assigned CVE-2022-24440. The vulnerability affected the Pod::Downloader.preprocess_options function when using git, where both git and branch parameters were passed to the git ls-remote subcommand in a way that allowed additional flags to be set (Snyk Report).

Technical details

The vulnerability occurs when calling the Pod::Downloader.preprocess_options function with git parameters. Both the git and branch parameters are passed to the git ls-remote subcommand without proper sanitization, allowing additional command flags to be injected. The vulnerability has a CVSS score of 7.5, indicating high severity. The issue was discovered by Alessio Della Libera of the Snyk Research Team (Snyk Report, Snyk Blog).

Impact

If exploited, this vulnerability could allow attackers to execute arbitrary commands on the affected system through command injection. The impact includes potential remote code execution with the privileges of the application running the cocoapods-downloader package (Snyk Report).

Mitigation and workarounds

The vulnerability was fixed in versions 1.6.0 and 1.6.3. Users should upgrade to these or later versions. The fix involved adding proper validation of command arguments and introducing the -- characters before user-controlled values to prevent argument injection (GitHub PR).

Community reactions

The vulnerability was responsibly disclosed and promptly fixed by the maintainers. The fix was implemented through pull requests #124 and #128 on GitHub, with the community actively participating in the discussion and verification of the fixes (GitHub PR, GitHub PR).

Additional resources


SourceThis report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-68271CRITICAL10
  • RubyRuby
  • openc3
NoYesJan 13, 2026
CVE-2026-22589HIGH7.5
  • RubyRuby
  • spree_core
NoYesJan 10, 2026
GHSA-96qw-h329-v5rgHIGH7.5
  • JavaScriptJavaScript
  • shakapacker
NoYesJan 08, 2026
CVE-2026-22588MEDIUM6.5
  • RubyRuby
  • spree_api
NoYesJan 08, 2026
GHSA-g9jg-w8vm-g96vMEDIUM4.6
  • JavaScriptJavaScript
  • action_text-trix
NoYesDec 31, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management