{"id":"CVE-2026-40079","published":"2026-06-24T23:26:40Z","modified":"2026-06-25T23:17:29Z","title":"Cacti: Command Injection via escape_command() no-op in RRDtool execution","vendor":"Cacti","product":"cacti","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:L/SI:L/SA:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0169,"percentile":0.77631,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"},{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"}],"references":[{"url":"https://github.com/Cacti/cacti/security/advisories/GHSA-xq98-376r-hv9j","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Cacti/cacti/commit/4c09efaebf3a9faec66969d0b5c4aceaf397f37f","tags":["x_refsource_MISC"]}],"priority":{"score":21.5,"factors":[{"name":"EPSS percentile","points":15.53},{"name":"CVSS severity","points":6.02}]},"vendorSlug":"cacti","affectedVersions":[{"vendor":"Cacti","product":"cacti","versions":["< 1.2.31"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-06-25T23:17:12.943938Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-39150","exploited":false,"provenance":"source"}}