CVE-2024-21531
Apache Git Command Injection Vulnerability
Description
All versions of the package git-shallow-clone are vulnerable to Command injection due to missing sanitization or mitigation flags in the process variable of the gitShallowClone function.
INFO
Published Date :
Oct. 1, 2024, 5:15 a.m.
Last Modified :
June 17, 2026, 7:09 a.m.
Remotely Exploit :
No
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | MEDIUM | [email protected] |
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-21531.
| URL | Resource |
|---|---|
| https://github.com/10uei011/git-shallow-clone/blob/master/index.js%23L27 | |
| https://security.snyk.io/vuln/SNYK-JS-GITSHALLOWCLONE-3253853 |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-21531 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-21531
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-21531 vulnerability anywhere in the article.
-
The Cyber Express
Microsoft Patch Tuesday February Update Flags Exchange and Azure Vulnerabilities as High-Priority Risks
Microsoft Patch Tuesday February 2026 addressed 54 vulnerabilities including six zero-days across Windows, Office, Azure services, Exchange Server, and developer tools. The latest patch update, rollou ... Read more
The following table lists the changes that have been made to the
CVE-2024-21531 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'n/a', 'product': 'git-shallow-clone', 'versions': [{'status': 'affected', 'version': '0', 'lessThan': '*', 'versionType': 'semver'}]}] -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'cpes': ['cpe:2.3:a:git:git-shallow-clone:*:*:*:*:*:*:*:*'], 'vendor': 'git', 'product': 'git-shallow-clone', 'versions': [{'status': 'affected', 'version': '0', 'lessThan': '*', 'versionType': 'semver'}], 'defaultStatus': 'unknown'}] Added SSVC {'id': 'CVE-2024-21531', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2024-10-01T13:47:26.389965Z'} -
CVE Received by [email protected]
Oct. 01, 2024
Action Type Old Value New Value Added Description All versions of the package git-shallow-clone are vulnerable to Command injection due to missing sanitization or mitigation flags in the process variable of the gitShallowClone function. Added Reference Snyk https://security.snyk.io/vuln/SNYK-JS-GITSHALLOWCLONE-3253853 [No types assigned] Added Reference Snyk https://github.com/10uei011/git-shallow-clone/blob/master/index.js%23L27 [No types assigned] Added CWE Snyk CWE-78 Added CVSS V3.1 Snyk AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L