CVE-2024-29895CWE-77

Cacti command injection in cmd_realtime.php

Critical · published May 13, 2024

Patch now

High probability of exploitation

CVSS calls it critical at 10.0. It sits in the 99.9th percentile for exploit probability.

CVSS v3.1
10.0
EPSS
99%
Percentile
99.9
In the wild
Unconfirmed
What it is

🚨 An unauthorized user can execute commands on your server with just a URL! This command injection flaw in Cacti's 1.3.x DEV branch could turn your monitoring tool into an attacker's playground. 🔥 Think of it like a restaurant where anyone can walk in, grab a menu, and order any dish they want without paying or even identifying themselves. That’s how this vulnerability works — a malicious user can manipulate server commands like someone demanding free food! An attacker could gain full control of your server, executing any command they desire. This could lead to data breaches, service disruptions, or even a complete server compromise — all while you're blissfully unaware! It's a recipe for disaster that should not be ignored.

Put simply

Think of it like a restaurant where anyone can walk in, grab a menu, and order any dish they want without paying or even identifying themselves. That’s how this vulnerability works — a malicious user can manipulate server commands like someone demanding free food! This command injection vulnerability occurs because the `$poller_id` variable in `cmd_realtime.php` pulls data from `$_SERVER['argv']`, which can be controlled via a URL when the `register_argc_argv` option of PHP is set to 'On'. This setting is often enabled by default, especially in common environments like the PHP Docker image.

What to do

An attacker could gain full control of your server, executing any command they desire. This could lead to data breaches, service disruptions, or even a complete server compromise — all while you're blissfully unaware! It's a recipe for disaster that should not be ignored. To protect yourself, immediately update Cacti to the fixed version post-reversion of the patch (check for updates). Additionally, disable the `register_argc_argv` PHP option if it's not required, and review server configurations to enhance security protocols. 🔒 You've got this! Stay vigilant, follow these steps, and you'll keep your server safe from this sneaky command injection! 🛡️

The record
Technical detail
CVSS v3.1
10.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.98826 · 99.9th percentile
Weakness
CWE-77 · Improper Neutralization of Special Elements used in a Command ('Command Injection')
Published
2024-05-13T14:33Z
EPSS history
Timeline
  • 13 MAY 14:33Z
    Cacti command injection in cmd_realtime.php
    cvelistv5