CVE-2022-24066
JavaScript vulnerability analysis and mitigation

Overview

The simple-git package versions before 3.5.0 contain a Command Injection vulnerability (CVE-2022-24066). This vulnerability exists due to an incomplete fix of a previous vulnerability (CVE-2022-24433) which only patched against the git fetch attack vector. The vulnerability affects the --upload-pack feature of git that is also supported for git clone operations, which the prior fix didn't address (Snyk JS).

Technical details

The vulnerability is classified as an Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') with a CVSS v3.1 base score of 8.1 (High). The vulnerability allows attackers to execute arbitrary commands through the --upload-pack parameter in git clone operations. The attack complexity is rated as High, requires no privileges or user interaction, and can potentially lead to a complete compromise of system confidentiality, integrity, and availability (Snyk Java).

Impact

The vulnerability can result in total loss of confidentiality, integrity, and availability of the affected system. An attacker can potentially execute arbitrary commands on the target system, leading to complete system compromise. The impact is particularly severe as it affects a package that receives over 2.2 million downloads per week (GitHub Gist).

Mitigation and workarounds

The recommended mitigation is to upgrade simple-git to version 3.5.0 or higher. The fix prevents the use of --upload-pack as a command in git.clone to avoid potential command execution. The patch includes additional validation to block potentially exploitable arguments (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-69264HIGH8.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69262HIGH7.5
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69263HIGH7.5
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2026-22028HIGH7.2
  • JavaScriptJavaScript
  • preact
NoYesJan 07, 2026
CVE-2025-9611HIGH7.2
  • JavaScriptJavaScript
  • @playwright/mcp
NoYesJan 07, 2026

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