CVE-2024-49368CWE-20

Unchecked logrotate settings lead to arbitrary command execution

High · published October 21, 2024

CVSS v4.0
8.9
EPSS
28%
Percentile
98.1
In the wild
Unconfirmed
What it is

⚡ A crafty command execution vulnerability lurks in Nginx UI before version 2.0.0-beta.36! An attacker can slip in arbitrary commands—like a chef preparing a sneaky dish without checking the menu first. 🍽️ Think of it like a restaurant where the kitchen cooks whatever the waiter writes down without asking questions. This means someone could order anything from the dessert menu, leading to an unexpected surprise in every dish! An attacker could potentially execute any command they wish on your server, leading to unauthorized access, data breaches, or even system takeover. This is absolutely devastating for your server’s security and could cause significant downtime and data loss.

Put simply

Think of it like a restaurant where the kitchen cooks whatever the waiter writes down without asking questions. This means someone could order anything from the dessert menu, leading to an unexpected surprise in every dish! The flaw arises because Nginx UI does not validate user input for logrotate configuration and directly passes it to exec.Command. This oversight allows attackers to run arbitrary commands on the server.

What to do

An attacker could potentially execute any command they wish on your server, leading to unauthorized access, data breaches, or even system takeover. This is absolutely devastating for your server’s security and could cause significant downtime and data loss. Upgrade Nginx UI to version 2.0.0-beta.36 or later to close this hole. Additionally, review and sanitize any user input to ensure that commands are not executed without proper validation. You've got this! Patch up and keep your server safe! 🛡️

The record
Technical detail
CVSS v4.0
8.9 · HIGH
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P
EPSS
0.27668 · 98.1th percentile
Weakness
CWE-20 · Improper Input Validation
Published
2024-10-21T17:04Z
EPSS history
Timeline
  • 21 OCT 17:04Z
    Unchecked logrotate settings lead to arbitrary command execution
    cvelistv5