CVE-2026-40079: Vulnerability in Cacti

Critical. Cacti is an open source performance and fault management framework. Versions 1.2.30 and prior are vulnerable to Command Injection due to lack of sanitization in the escape_command() function. The escape_command() function at lib/rrd.php is a no-op: it returns $command unchanged. The command line built by rrdtool_function_graph() is passed through this function and then to shell_exec($full_commandline). The risk...

CWE-78, CWE-88

Exploitation
None confirmed
Severity
9.8 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-78, CWE-88
Published
25 Jun 2026
Last change
26 Jun 2026

Affected products

Affected versions and the first fixed release

  • Cacti Before 1.2.31. Fixed in 1.2.31

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes

Related