Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. git-commit-info
  4. ›
  5. CVE-2023-26134

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

June 28, 2023 (updated October 30, 2024)

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.

References

  • github.com/JPeer264/node-git-commit-info
  • github.com/JPeer264/node-git-commit-info/commit/f7c491ede51f886a988af9b266797cb24591d18c
  • github.com/JPeer264/node-git-commit-info/issues/24
  • github.com/advisories/GHSA-h42j-mrmp-9369
  • nvd.nist.gov/vuln/detail/CVE-2023-26134
  • security.snyk.io/vuln/SNYK-JS-GITCOMMITINFO-5740174
  • www.npmjs.com/package/execa/v/5.1.0

Code Behaviors & Features

Detect and mitigate CVE-2023-26134 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.0.2

Fixed versions

  • 2.0.2

Solution

Upgrade to version 2.0.2 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

npm/git-commit-info/CVE-2023-26134.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:55 +0000.