
Cloud Vulnerability DB
A community-led vulnerabilities database
Versions of the package git-commit-info before 2.0.2 are vulnerable to Command Injection. The vulnerability exists in the package-exported method gitCommitInfo() which fails to sanitize its parameter commit, which later flows into a sensitive command execution API. The vulnerability was discovered and disclosed on June 26, 2023, and affects all versions of the git-commit-info package prior to version 2.0.2 (Snyk Advisory).
The vulnerability is classified as a Command Injection (CWE-77) with a CVSS v3.1 base score of 9.8 CRITICAL. The attack vector is network-based with low attack complexity, requiring no privileges or user interaction. The vulnerability allows attackers to inject malicious commands when they control the hash content parameter. The vulnerability stems from improper validation of the commit parameter before it is passed to command execution APIs (NVD, Snyk Advisory).
The vulnerability can lead to a complete compromise of system confidentiality, integrity, and availability. Successful exploitation allows attackers to execute arbitrary commands within the context of the application running the vulnerable package. This could result in unauthorized access to sensitive information, system modification, or service disruption (Snyk Advisory).
The recommended mitigation is to upgrade git-commit-info to version 2.0.2 or higher. The fix implements proper validation of commit hashes before execution by adding a regex check that ensures the commit parameter matches the expected format of a git hash (GitHub Patch).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."