CVE-2023-26134 git-commit-info vulnerable to Command Injection

Critical 9.8 Published Updated

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.

Weakness: CWE-77, CWE-78

Which versions are affected by CVE-2023-26134?

2 open source packages ship an affected version, including git-commit-info. It affects 1 product.

PackageAffectedFixed in
git-commit-info npmAll versions2.0.2
git-commit-info npmAll versions2.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.

Is CVE-2023-26134 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free