git-commit-info vulnerable to Command Injection
Critical severity
GitHub Reviewed
Published
Jun 28, 2023
to the GitHub Advisory Database
•
Updated Nov 29, 2023
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
Nov 29, 2023
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 malicious commands once they control the hash content.
References