NetSight
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

EcosystemPackageAffectedFixed in
npmgit-commit-info< 2.0.22.0.2

Affected products

VendorProductAffected versions
Git-Commit-Info ProjectGit-Commit-Info
before 2.0.2

Weakness classification

References