Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') Affecting git-shallow-clone package, versions *


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.04% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-GITSHALLOWCLONE-3253853
  • published30 Sept 2024
  • disclosed31 Jan 2023
  • creditLiran Tal - Snyk Research Team

Introduced: 31 Jan 2023

CVE-2024-21531  (opens in a new tab)
CWE-88  (opens in a new tab)
First added by Snyk

How to fix?

There is no fixed version for git-shallow-clone.

Overview

Affected versions of this package are vulnerable to Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') due to missing sanitization or mitigation flags in the process variable of the gitShallowClone function.

PoC

const clone = require('git-shallow-clone')
clone('file:///tmp/a', '--upload-pack=touch pwn0')

References

CVSS Scores

version 4.0
version 3.1