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

    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

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
Expand this section

Snyk

Recommended
4.8 medium
  • Attack Vector (AV)
    Local
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    Low
  • Integrity (VI)
    Low
  • Availability (VA)
    Low
  • Confidentiality (SC)
    None
  • Integrity (SI)
    None
  • Availability (SA)
    None