Advisory

GHSA-h42j-mrmp-9369

Also known as: CVE-2023-26134

Summary

git-commit-info vulnerable to Command Injection

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2023-06-28 06:30 UTC
Modified
2024-10-30 18:00 UTC

Affected packages and fixes

git-commit-info

npm · All systems

Affected

  • introduced 0, fixed 2.0.2 (semver)

Fixed versions

2.0.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences