PT-2023-20513 · Unknown · Git-Commit-Info

Feng Xiao

·

Published

2023-06-28

·

Updated

2023-07-06

·

CVE-2023-26134

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions git-commit-info versions prior to 2.0.2
Description The issue arises from the gitCommitInfo() method failing to sanitize its commit parameter, which later flows into a sensitive command execution API. This allows attackers to inject malicious commands once they control the hash content, potentially leading to command injection attacks. The vulnerability enables attackers to inject arguments to the git binary.
Recommendations For versions prior to 2.0.2, update to version 2.0.2 or later to resolve the issue. As a temporary workaround, consider restricting the use of the gitCommitInfo() function until a patch is available. Avoid using the commit parameter in sensitive command execution APIs until the issue is resolved.

Exploit

Fix

OS Command Injection

Command Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2023-26134
GHSA-H42J-MRMP-9369

Affected Products

Git-Commit-Info