OS Command Injection in Cacti - CVE-2026-40079

 

OS Command Injection in Cacti - CVE-2026-40079

Published: June 22, 2026


Vulnerability identifier: #VU134990
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-40079
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to execute arbitrary commands.

The vulnerability exists due to command injection in lib/rrd.php __rrd_execute() and escape_command() when processing graph template text_format values with host variable substitutions for RRDtool execution. A remote user can supply crafted text_format values to execute arbitrary commands.

The issue affects the graph rendering shell_exec path, while the previously vulnerable tune function is described as already fixed.


Affected software

Cacti

How to mitigate CVE-2026-40079

Install security update from vendor's website.

Cacti - update to 1.2.31

External References

Related Security Bulletins