jpeer264/node-git-commit-info · Security
git-commit-info vulnerable to Command Injection
- GHSA ID
- GHSA-h42j-mrmp-9369
- CVE ID
- CVE-2023-26134
- Severity
- high
- Published
- Updated
- CVSS
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS v4
- 8.9 · 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
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 arguments to the git binary.
CWEs
- CWE-77 · Improper Neutralization of Special Elements used in a Command ('Command Injection')
- CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-26134 ↗
- https://github.com/JPeer264/node-git-commit-info/issues/24 ↗
- https://github.com/JPeer264/node-git-commit-info/commit/f7c491ede51f886a988af9b266797cb24591d18c ↗
- https://security.snyk.io/vuln/SNYK-JS-GITCOMMITINFO-5740174 ↗
- https://www.npmjs.com/package/execa/v/5.1.0#execacommandcommand-options ↗
- https://github.com/advisories/GHSA-h42j-mrmp-9369 ↗