Vulnerability · Published Oct 8, 2024 · Assigned by snyk

CVE-2024-21533

Medium 6.5

In plain English

A medium-severity argument injection in ggit. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 49% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)0.6%top 51.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

Official description

All versions of the package ggit are vulnerable to Arbitrary Argument Injection via the clone() API, which allows specifying the remote URL to clone and the file on disk to clone to. The library does not sanitize for user input or validate a given URL scheme, nor does it properly pass command-line flags to the git binary using the double-dash POSIX characters (--) to communicate the end of options.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmggitno fix listedGHSA-pr45-cg4x-ff4m

Affected products (as reported)

VendorProductVersions
n/a ggit 0 – before *

Weakness: CWE-88 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L/E:P

References