git-commit-info vulnerable to Command Injection
High severity
GitHub Reviewed
Published
Jun 28, 2023
to the GitHub Advisory Database
•
Updated Oct 30, 2024
Description
Published by the National Vulnerability Database
Jun 28, 2023
Published to the GitHub Advisory Database
Jun 28, 2023
Reviewed
Jun 30, 2023
Last updated
Oct 30, 2024
Versions of the package git-commit-info before 2.0.2 are vulnerable to Command Injection such that the package-exported method gitCommitInfo() fails to sanitize its parameter commit, which later flows into a sensitive command execution API. As a result, attackers may inject arguments to the git binary.
References