GitHub Advisoryadvisory · npm
GHSA-pr45-cg4x-ff4m ggit is vulnerable to Arbitrary Argument Injection via the clone() API
MEDIUM
Official page ↗
- Aliases
- CVE-2024-21533
- Ecosystem
- npm
- Packages
- ggit
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
- Weaknesses
- CWE-88
- Reviewed
- 2024-10-08
Affected packages
• npm ggit: <= 2.4.12 (no fix yet)
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.
Related
Alias · CVE (1)
- CVE-2024-21533 All versions of the package ggit are vulnerable to Arbitrary Argument Injection via the clone() API, which allows specifying the remote URL… vulnerability
Weakness · CWE (1)
- CWE-88 Improper Neutralization of Argument Delimiters in a Command weakness