Skip to content

git-commit-info vulnerable to Command Injection

Critical severity GitHub Reviewed Published Jun 28, 2023 to the GitHub Advisory Database • Updated Nov 29, 2023

Package

npm git-commit-info (npm)

Affected versions

< 2.0.2

Patched versions

2.0.2

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.

References

Published by the National Vulnerability Database Jun 28, 2023
Published to the GitHub Advisory Database Jun 28, 2023
Reviewed Jun 30, 2023
Last updated Nov 29, 2023

Severity

Critical
9.8
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVE ID

CVE-2023-26134

GHSA ID

GHSA-h42j-mrmp-9369
Checking history
See something to contribute? Suggest improvements for this vulnerability.