CVE-2022-25860
JavaScript vulnerability analysis and mitigation

Overview

CVE-2022-25860 affects versions of the simple-git package before 3.16.0, exposing a Remote Code Execution (RCE) vulnerability through the clone(), pull(), push() and listRemote() methods due to improper input sanitization. This vulnerability is particularly notable as it exists due to an incomplete fix of a previous vulnerability CVE-2022-25912 (NVD, Snyk).

Technical details

The vulnerability stems from improper input sanitization in several git operations. The affected methods include clone(), pull(), push(), and listRemote(), which can be exploited through custom upload and receive pack options. The vulnerability has received a CVSS v3.1 base score of 9.8 (CRITICAL) from NVD and 8.1 (HIGH) from Snyk, indicating its severe nature. The vulnerability specifically relates to unsafe pack operations, including the use of --upload-pack, --receive-pack, and the -u option in clone operations (GitHub Commit).

Impact

If exploited, this vulnerability could allow attackers to execute arbitrary code on the affected system through various git operations. The impact is particularly severe as it allows for complete compromise of system confidentiality, integrity, and availability, with the potential for total loss of protection (Snyk).

Mitigation and workarounds

The primary mitigation is to upgrade simple-git to version 3.16.0 or higher. For cases where immediate upgrade is not possible, the package introduced an allowUnsafePack configuration option that must be explicitly enabled to use potentially dangerous operations (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-67731HIGH8.7
  • JavaScriptJavaScript
  • servify-express
NoYesDec 12, 2025
CVE-2025-67718HIGH8.7
  • JavaScriptJavaScript
  • formio
NoYesDec 11, 2025
CVE-2025-8083HIGH8.6
  • JavaScriptJavaScript
  • vuetify
NoYesDec 12, 2025
CVE-2025-67750HIGH8.4
  • JavaScriptJavaScript
  • lightning-flow-scanner
NoYesDec 12, 2025
CVE-2025-8082MEDIUM6.3
  • JavaScriptJavaScript
  • vuetify
NoYesDec 12, 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