Command Injection in ungit
High severity
GitHub Reviewed
Published
Mar 22, 2022
to the GitHub Advisory Database
•
Updated Jan 27, 2023
Description
Published by the National Vulnerability Database
Mar 21, 2022
Published to the GitHub Advisory Database
Mar 22, 2022
Reviewed
Mar 28, 2022
Last updated
Jan 27, 2023
The package ungit before 1.5.20 are vulnerable to Remote Code Execution (RCE) via argument injection. The issue occurs when calling the /api/fetch endpoint. User controlled values (remote and ref) are passed to the git fetch command. By injecting some git options it was possible to get arbitrary command execution.
References