Critical Unauthenticated LFI in Cacti Patched in Version 1.2.31
Vulnerability Disclosure · 3 sources · Updated 5mo ago · First seen Jun 25, 2026

Cacti disclosed a critical unauthenticated local file inclusion flaw, tracked as CVE-2026-39938 and GHSA-rm7p-qcqm-x5m6, affecting versions up to and including 1.2.30. The issue stems from the graph_theme parameter and can be exploited over the network without privileges or user interaction, earning a CVSS 3.1 score of 9.8. The advisory also notes related hardening for rrdtool IPC serialization, with the weakness associated with path traversal and potential OS command injection concerns.
An earlier security change in the 1.2.x branch sanitized graph_theme with PHP basename() and rejected empty, . and .. values in lib/rrd.php, falling back to the selected theme when input was invalid. Cacti later determined that approach was bypassable and replaced it with stronger filesystem allowlist validation in cacti_validate_theme(). The vendor fixed the vulnerability in 1.2.31, making that release the recommended upgrade target for exposed deployments.


