CVE-2023-26134 git-commit-info vulnerable to Command Injection
Attackers can execute arbitrary commands by injecting malicious content into the commit hash parameter of the git-commit-info library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-26134?
CVE-2023-26134 is a critical command injection vulnerability in git-commit-info, published on 28 Jun 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Which versions are affected by CVE-2023-26134?
2 open source packages ship an affected version, including git-commit-info. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
git-commit-info npm | All versions | 2.0.2 |
git-commit-info npm | All versions | 2.0.2 |
Products include Git-Commit-Info Project Git-Commit-Info.
How do I fix CVE-2023-26134?
Upgrade git-commit-info to 2.0.2 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2023-26134 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-26134 exists.
Sources
Also known as GHSA-h42j-mrmp-9369.