Vulnerability · Published Jun 28, 2023 · Assigned by snyk
CVE-2023-26134
Critical 9.8
In plain English
A critical-severity OS command injection in git-commit-info. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 3.6% (higher than 90% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | git-commit-info | 2.0.2 | GHSA-h42j-mrmp-9369 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | git-commit-info | 0 – before 2.0.2 |
Weakness: CWE-78 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P