CVE-2023-26134CWE-78

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…

Critical · published June 28, 2023

CVSS v3.1
9.8
EPSS
4%
Percentile
89.5
In the wild
Unconfirmed
What it is

🔥 A sneaky command injection vulnerability lurks in git-commit-info versions before 2.0.2! This means an attacker can execute malicious commands by simply controlling commit hashes. ⚡ Imagine a restaurant where orders are taken without verifying the ingredients — a chef trusts whatever the customer claims they want, leading to disastrous meals. Here, the gitCommitInfo method is like that chef, accepting input without checking for harmful commands! An attacker could execute commands on your server as if they were the head chef, gaining access to sensitive data and potentially devastating control over your system. This could lead to unauthorized file access, data manipulation, or worse — complete server takeover! Don't let your system become a playground for malicious actors.

Put simply

Imagine a restaurant where orders are taken without verifying the ingredients — a chef trusts whatever the customer claims they want, leading to disastrous meals. Here, the gitCommitInfo method is like that chef, accepting input without checking for harmful commands! This command injection vulnerability arises from the gitCommitInfo method failing to properly sanitize its 'commit' parameter, allowing attackers to inject arbitrary commands that can be executed by the API.

What to do

An attacker could execute commands on your server as if they were the head chef, gaining access to sensitive data and potentially devastating control over your system. This could lead to unauthorized file access, data manipulation, or worse — complete server takeover! Don't let your system become a playground for malicious actors. To safeguard your system, update git-commit-info to version 2.0.2 or higher immediately! Conduct a thorough review of any commit-related inputs and enforce strict input validation across your applications. Don't wait — secure your environment now! You’ve got this! With prompt action, you can patch this vulnerability and keep your system safe! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P
CVSS v4.0
Not supplied
EPSS
0.03638 · 89.5th percentile
Weakness
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2023-06-28T05:00Z
EPSS history
Timeline
  • 28 JUN 05:00Z
    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…
    cvelistv5