{"id":"CVE-2026-40079","aliases":["CVE-2026-40079"],"related":[],"kind":"vulnerability","state":"published","title":"Cacti: Command Injection via escape_command() no-op in RRDtool execution","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-06-24T23:26:40.623Z","modified":"2026-06-26T00:16:51.910Z","severity":{"scorer":"GitHub_M","scheme":"CVSS: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","score":8.6,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS: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","score":8.6,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-78","CWE-88"],"affected":[{"ranges":[{"version":"< 1.2.31","status":"affected"}],"vendor":"Cacti","product":"cacti","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"1.2.31"}],"vendor":"cacti","product":"cacti","cpe":"cpe:2.3:a:cacti:cacti:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/Cacti/cacti/security/advisories/GHSA-xq98-376r-hv9j","tags":["mitigation","patch","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/Cacti/cacti/commit/4c09efaebf3a9faec66969d0b5c4aceaf397f37f","tags":["patch","x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-06-25T23:17:12.943Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-40079","url":"https://www.cve.org/CVERecord?id=CVE-2026-40079","licence":"CVE Terms of Use","modified":"2026-06-25T23:17:29.519Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-40079","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40079","licence":"Public domain","modified":"2026-06-26T00:16:51.910Z"}],"updatedAt":"2026-11-25T22:59:25.770Z","epss":{"score":0.0169,"percentile":0.77524,"date":"2026-11-30T12:00:22.000Z"}}