CVE-2023-26134
CRITICAL 9.8CVSS 3.1git-commit-info vulnerable to Command Injection
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.
- Published
- 28 Jun 2023
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-77CWE-78
- Also known as
- GHSA-h42j-mrmp-9369
- Sources
- NVDJSONOSV GHSA-h42j-mrmp-9369JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P | |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | git-commit-info_project | git-commit-infocpe:2.3:a:git-commit-info_project:git-commit-info:*:*:*:*:*:node.js:*:* |
< 2.0.2 | 2.0.2 |
| OSV | npm | git-commit-info | < 2.0.2 | 2.0.2 |
References
- https://github.com/JPeer264/node-git-commit-info/commit/f7c491ede51f886a988af9b266797cb24591d18c · Patch, WEB
- https://github.com/JPeer264/node-git-commit-info/issues/24 · Exploit, Issue Tracking, WEB
- https://security.snyk.io/vuln/SNYK-JS-GITCOMMITINFO-5740174 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-26134 · ADVISORY
- https://github.com/JPeer264/node-git-commit-info · PACKAGE
- https://www.npmjs.com/package/execa/v/5.1.0#execacommandcommand-options · WEB
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 28 Jun 2023)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 28 Jun 2023)