CVE-2024-21531
JavaScript vulnerability analysis and mitigation

Overview

CVE-2024-21531 affects all versions of the git-shallow-clone package. The vulnerability was discovered and disclosed by Liran Tal from the Snyk Research Team on January 31, 2023, and was published on September 30, 2024. This security issue involves a Command Injection vulnerability due to missing sanitization or mitigation flags in the process variable of the gitShallowClone function (Snyk Advisory).

Technical details

The vulnerability is classified as CWE-78 (Improper Neutralization of Special Elements used in an OS Command) with a CVSS v3.1 Base Score of 5.3 MEDIUM. The attack vector is Local (AV:L), with Low attack complexity (AC:L), requiring Low privileges (PR:L), and No user interaction (UI:N). The scope is Unchanged (S:U) with Low impact on Confidentiality (C:L), Integrity (I:L), and Availability (A:L) (Snyk Advisory).

Impact

The vulnerability allows an attacker with local access and low-level privileges to potentially execute arbitrary commands through command injection. This could lead to unauthorized access, data manipulation, or system compromise with limited impact on confidentiality, integrity, and availability of the affected system (Snyk Advisory).

Mitigation and workarounds

Currently, there is no fixed version available for the git-shallow-clone package. Users are advised to assess their risk and consider alternative solutions or implementing additional security controls to prevent command injection attacks (Snyk Advisory).

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