Skip to content

CVE-2026-40079 Cacti: Command Injection via escape_command() no-op in RRDtool execution

HighCVSS 8.6 EPSS 1.7%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: total
Technology
PHPUbuntuDebian

Description

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 is in __rrd_execute() where text_format values from graph templates (which may contain host variable substitutions) reach shell_exec without adequate escaping. This issue has been addressed in version 1.2.31.

Upgrade path

8 packages: 2 fixed, 6 with no fix yet.

PackageAffectedFixed inStatus
debian/cacti(Debian 12) = 1.2.24+ds1-1; = 1.2.24+ds1-1+deb12u1; = 1.2.24+ds1-1+deb12u2; = 1.2.24+ds1-1+deb12u3 +19 more No fix listed No fix yet
debian/cacti(Debian 13) = 1.2.30+ds1-1; = 1.2.30+ds1-2; = 1.2.30+ds1-3; = 1.2.31+ds1-1 +4 more No fix listed No fix yet
ubuntu/cacti(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/cacti(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/cacti(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/cacti(Ubuntu 26.10) All versions No fix listed No fix yet
cacti < 1.2.31; = < 1.2.31 1.2.31 Fixed
debian/cacti(Debian 14) < 1.2.31+ds1-1; = 1.2.30+ds1-1; = 1.2.30+ds1-2; = 1.2.30+ds1-3 1.2.31+ds1-1 Fixed

Affected products

ProductAffected versionsFixed in
cacti = < 1.2.31 No fix listed
debian/cacti(Debian:12) All versions No fix listed
debian/cacti(Debian:12) = 1.2.24+ds1-1 No fix listed
debian/cacti(Debian:12) = 1.2.24+ds1-1+deb12u1 No fix listed
debian/cacti(Debian:12) = 1.2.24+ds1-1+deb12u2 No fix listed
debian/cacti(Debian:12) = 1.2.24+ds1-1+deb12u3 No fix listed
debian/cacti(Debian:12) = 1.2.24+ds1-1+deb12u4 No fix listed
debian/cacti(Debian:12) = 1.2.24+ds1-1+deb12u5 No fix listed
debian/cacti(Debian:12) = 1.2.25+ds1-1 No fix listed
debian/cacti(Debian:12) = 1.2.25+ds1-2 No fix listed
debian/cacti(Debian:12) = 1.2.26+ds1-1 No fix listed
debian/cacti(Debian:12) = 1.2.27+ds1-1 No fix listed
debian/cacti(Debian:12) = 1.2.27+ds1-2 No fix listed
debian/cacti(Debian:12) = 1.2.28+ds1-1 No fix listed
debian/cacti(Debian:12) = 1.2.28+ds1-2 No fix listed
debian/cacti(Debian:12) = 1.2.28+ds1-3 No fix listed
debian/cacti(Debian:12) = 1.2.28+ds1-4 No fix listed
debian/cacti(Debian:12) = 1.2.30+ds1-1 No fix listed
debian/cacti(Debian:12) = 1.2.30+ds1-2 No fix listed
debian/cacti(Debian:12) = 1.2.30+ds1-3 No fix listed
debian/cacti(Debian:12) = 1.2.31+ds1-1 No fix listed
debian/cacti(Debian:12) = 1.2.31+ds1-2 No fix listed
debian/cacti(Debian:12) = 1.2.31+ds1-3 No fix listed
debian/cacti(Debian:12) = 1.2.31+ds1-4 No fix listed
debian/cacti(Debian:13) All versions No fix listed
Show 16 more
ProductAffected versionsFixed in
debian/cacti(Debian:13) = 1.2.30+ds1-1 No fix listed
debian/cacti(Debian:13) = 1.2.30+ds1-2 No fix listed
debian/cacti(Debian:13) = 1.2.30+ds1-3 No fix listed
debian/cacti(Debian:13) = 1.2.31+ds1-1 No fix listed
debian/cacti(Debian:13) = 1.2.31+ds1-2 No fix listed
debian/cacti(Debian:13) = 1.2.31+ds1-3 No fix listed
debian/cacti(Debian:13) = 1.2.31+ds1-4 No fix listed
debian/cacti(Debian:14) < 1.2.31+ds1-1 1.2.31+ds1-1
debian/cacti(Debian:14) = 1.2.30+ds1-1 No fix listed
debian/cacti(Debian:14) = 1.2.30+ds1-2 No fix listed
debian/cacti(Debian:14) = 1.2.30+ds1-3 No fix listed
ubuntu/cacti(Ubuntu:22.04) All versions No fix listed
ubuntu/cacti(Ubuntu:24.04) All versions No fix listed
ubuntu/cacti(Ubuntu:26.04) All versions No fix listed
ubuntu/cacti(Ubuntu:26.10) All versions No fix listed
cacti < 1.2.31 1.2.31

References