CVE-2024-21533
MEDIUMggit - Arbitrary Argument Injection via clone() API
Title source: llmExploitation Summary
EIP tracks 1 public exploit for CVE-2024-21533. PoCs published by lirantal.
AI-analyzed exploit summary The repository contains a functional PoC for CVE-2024-21533, demonstrating an argument injection vulnerability in the `ggit` npm package. The exploit leverages improper handling of the `--upload-pack` Git option to achieve arbitrary command execution.
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.
Exploits (1)
The repository contains a functional PoC for CVE-2024-21533, demonstrating an argument injection vulnerability in the `ggit` npm package. The exploit leverages improper handling of the `--upload-pack` Git option to achieve arbitrary command execution.
References (3)
Scores
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L