Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. git-shallow-clone
  4. ›
  5. CVE-2024-21531

CVE-2024-21531: git-shallow-clone Argument Injection vulnerability

October 1, 2024 (updated November 7, 2024)

All versions of the package git-shallow-clone are vulnerable to Argument injection due to missing sanitization or mitigation flags in the process variable of the gitShallowClone function.

References

  • github.com/10uei011/git-shallow-clone
  • github.com/10uei011/git-shallow-clone/blob/master/index.js
  • github.com/advisories/GHSA-qwrq-vxvw-537r
  • nvd.nist.gov/vuln/detail/CVE-2024-21531
  • security.snyk.io/vuln/SNYK-JS-GITSHALLOWCLONE-3253853

Code Behaviors & Features

Detect and mitigate CVE-2024-21531 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 0.0.2

Solution

Unfortunately, there is no solution available yet.

Impact 5.3 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')

Source file

npm/git-shallow-clone/CVE-2024-21531.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:04 +0000.