CVE-2026-40079
Beschrijving NL
Cacti is een open source performance en fault management framework. Versies 1.2.30 en eerder zijn kwetsbaar voor Command Injection vanwege een gebrek aan ontsmetting in de escape_command() -functie. De functie escape_command() bij lib/rrd.php is een no-op: het retourneert $command ongewijzigd. De opdrachtregel die door rrdtool_function_graph() is gebouwd, wordt door deze functie geleid en vervolgens naar shell_exec($full_commandline). Het risico zit in __rrd_execute() waar TEXT_format waarden van grafieksjablonen (die vervangingen van hostvariabelen kunnen bevatten) shell_exec bereiken zonder voldoende ontsnapping. Dit probleem is verholpen in versie 1.2.31.
Origineel (Engels) tonen
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.