Patchfirst
CVE-2023-26134 Critical · 9.8 EPSS 3.6%

Versions of the package git-commit-info before 2.0.2 are vulnerable to Command Injection such that the…

Fix:upgrade git-commit-info to 2.0.2 or later Details ↓

Summary

The git-commit-info npm package, in versions before 2.0.2, has a command injection flaw in its exported gitCommitInfo() method, which fails to sanitise the commit parameter before it reaches a command execution API. An attacker who can control the hash content passed to that method can inject arbitrary shell commands, with no authentication or user interaction required over network access.

Official description · CVE.org

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.

Breakdown
59.8 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 19 months after disclosure.

  1. Disclosedday 0
  2. First seen exploitedVulnCheck KEV evidence+19 mo

Affected versions and fixes

as published in the CVE record

git-commit-info

Affected: < 2.0.2

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: git-commit-info.

npmgit-commit-infoGHSA-h42j-mrmp-9369

Upgrade to 2.0.2 or later

npmnpm install git-commit-info@2.0.2

The first fix for CVE-2023-26134. No other CVE tracked by Patchfirst affects this package.

Affected versions

If you runUpgrade to
All versions before 2.0.22.0.2

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

References

3 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close