~ / search / GHSA-pr45-cg4x-ff4m

GHSA-pr45-cg4x-ff4m

ggit is vulnerable to Arbitrary Argument Injection via the clone() API

Source: GitHub Advisory Database (reviewed) Moderate CVE-2024-21533

Packages

EcosystemPackageAffectedFixed in
npm ggit <= 2.4.12 no fix listed

Details

As written in the advisory (Markdown source, shown as plain text).

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.

References

External links from the advisory. They lead to third-party sites.