critical9.8
CVE-2023-26134
git-commit-info vulnerable to Command Injection
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | git-commit-info | < 2.0.2 | 2.0.2 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Git-Commit-Info Project | Git-Commit-Info | before 2.0.2 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/JPeer264/node-git-commit-info/commit/f7c491ede51f886a988af9b266797cb24591d18c
- https://github.com/JPeer264/node-git-commit-info/issues/24
- https://security.snyk.io/vuln/SNYK-JS-GITCOMMITINFO-5740174
- https://github.com/advisories/GHSA-h42j-mrmp-9369
- https://nvd.nist.gov/vuln/detail/CVE-2023-26134
- https://www.npmjs.com/package/execa/v/5.1.0#execacommandcommand-options