Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to Cacti web UI
-
DeliverySubmit graph request with malicious graph_theme
-
ExploitPath escapes include/themes directory
-
ExecutionCacti includes attacker-influenced rrdtheme.php
-
ImpactLocal file inclusion / code execution
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the ability to invoke Cacti's RRDtool theme/graph-rendering path (rrdtool_function_theme_font_options) with a controlled 'graph_theme' value containing traversal sequences; the resolved path is constrained to end in '/rrdtheme.php', so meaningful code-execution impact additionally requires the attacker to be able to reference an attacker-controlled rrdtheme.php on the filesystem. Limiting factors: the functionality is normally reached through Cacti's authenticated web UI (the provided PR:N is not corroborated by the description and should be verified), the traversal suffix is fixed to rrdtheme.php which bounds arbitrary file read, and only versions prior to 1.2.31 are affected. |
| Impact | The supplied CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N, C:H/I:H/A:H = 9.8 Critical) treats this as a remote, unauthenticated, fully-impacting flaw - but that is in tension with how Cacti exposes graph/theme functionality, which is normally reached through an authenticated session, so PR:N is likely optimistic; verify against the GHSA advisory (GHSA-rm7p-qcqm-x5m6). The traversal is also constrained: the path is forced to end in '/rrdtheme.php', so it is not arbitrary-file read of any file but inclusion of a 'rrdtheme.php' located via traversal, which bounds the realistic confidentiality/integrity impact unless the attacker can also stage such a file. No EPSS score, KEV listing, or POC was provided, indicating no evidence of active exploitation; the primary risk signal is a confirmed upstream code fix rather than observed attacks. Net: a genuine path-traversal bug worth patching promptly given Cacti's exposure as a web app, but the headline 9.8 likely overstates real-world unauthenticated impact pending vendor confirmation of preconditions. |
| Exploit ScenarioDerived | An attacker with access to Cacti's graph-rendering functionality submits a request where the graph_theme value contains directory-traversal sequences (e.g. '../../../something'), causing Cacti to build a path outside include/themes/ and include a rrdtheme.php from a location the attacker influences. If the attacker can point this at a PHP file they control or have previously written, this escalates from path traversal toward code execution; absent that, it can still expose unintended files. No public POC was provided in the input. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jun 24, 2026
Path traversal in Cacti's RRDtool theme handling (lib/rrd.php) lets an attacker manipulate the 'graph_theme' value to escape the themes directory and force inclusion of an attacker-influenced 'rrdtheme.php' from an arbitrary path, fixed in Cacti 1.2.31 (Alpine package 1.2.31-0). Because the traversed path is appended to base_path and ultimately included by PHP, successful exploitation can lead to local file inclusion and potential code execution. No public exploit identified at time of analysis and the issue is not on CISA KEV; an upstream source-code fix (basename() sanitization) is publicly available.
Earlier versions of this analysis (2)
Path traversal in Cacti's RRDtool theme handling (fixed in 1.2.31) lets an attacker control the 'graph_theme' value to escape the intended themes directory and force inclusion of an attacker-chosen 'rrdtheme.php' file, enabling local file inclusion and potential PHP code execution. The flaw is addressed upstream by a GHSA advisory (GHSA-rm7p-qcqm-x5m6) and shipped in Alpine as cacti 1.2.31-0. There is no public exploit identified at time of analysis, and it is not listed in CISA KEV.
Cacti, a widely-used network monitoring and graphing tool, has been patched in Alpine Linux at package version 1.2.31-0 to address CVE-2026-39938. The nature of the underlying vulnerability - its attack vector, impact class, and affected component - is not disclosed in the available intelligence. No public exploit has been identified at time of analysis, and the vulnerability has not been added to the CISA KEV catalog based on available data.
RemediationAI
Upgrade to Cacti 1.2.31 or later (Alpine: cacti 1.2.31-0), which adds basename() sanitization of the graph_theme value; this is the primary and recommended fix per the vendor advisory GHSA-rm7p-qcqm-x5m6 (https://github.com/Cacti/cacti/security/advisories/GHSA-rm7p-qcqm-x5m6) and commit 9871f0cef9af285398d558c9b3188d5977e01a04 (https://github.com/Cacti/cacti/commit/9871f0cef9af285398d558c9b3188d5977e01a04). If immediate patching is not possible, restrict network access to the Cacti web interface to trusted management networks and enforce authentication on all graph-rendering endpoints to reduce who can reach the vulnerable theme-handling code; on a WAF or reverse proxy, block requests whose graph_theme parameter contains path-traversal sequences ('../', encoded variants, leading slashes) - noting this may break legitimate custom theme names and can be bypassed by encoding tricks, so it is a stopgap, not a substitute for the upgrade.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Cacti is an open-source, PHP-based network graphing and performance-monitoring front end built on RRDtool and MySQL. The flaw (CWE-22, Path Traversal) lives in rrdtool_function_theme_font_options() in lib/rrd.php, where the user-influenced $graph_data_array['graph_theme'] value was concatenated directly into a filesystem path: $config['base_path'] . '/include/themes/' . graph_theme . '/rrdtheme.php'. With no normalization, sequences such as '../' allowed the resolved path to point outside the intended include/themes/ directory, with the constraint that the resulting path still terminates in '/rrdtheme.php'. The patch wraps the value in basename() and falls back to get_selected_theme() when the value collapses to '', '.', or '..', neutralizing directory traversal.
Know when Cacti gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Cacti theme/graph functions are reached via an authenticated web session (PR:L); traversal is network-reachable and low-complexity, but the forced '/rrdtheme.php' suffix bounds impact, so C:H with limited I and no clear A.
Primary rating from Vendor (vendor:alpine).
CVSS VectorVendor: vendor:alpine
Lifecycle Timeline
3DescriptionCVE.org
Alpine Linux: cacti fixed in 1.2.31-0
Executive ViewAI
A critical path traversal vulnerability in Cacti's theme handling allows unauthenticated attackers to execute arbitrary code on vulnerable systems by manipulating the graph_theme parameter. Organizations relying on Cacti for infrastructure monitoring face direct compromise of monitoring infrastructure, potentially enabling attackers to gain persistence and visibility into network operations.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Affected Products (CPE)CVE.org
Cacti monitoring platform prior to version 1.2.29 allows authenticated users to achieve remote code execution through th
Cacti is an open source platform which provides a robust and extensible operational monitoring and fault management fram
Cacti provides an operational monitoring and fault management framework. Rated high severity (CVSS 8.8), this vulnerabil
Cacti is a robust performance and fault management framework and a frontend to RRDTool - a Time Series Database (TSDB).
A SQL injection issue in color.php in Cacti 1.2.12 allows an admin to inject SQL via the filter parameter. Rated high se
Cacti is an open source operational monitoring and fault management framework. Rated critical severity (CVSS 9.8), this
SQL injection vulnerability in graph_templates_inputs.php in Cacti 0.8.8b allows remote attackers to execute arbitrary S
SQL injection vulnerability in the host_new_graphs function in graphs_new.php in Cacti 0.8.8f and earlier allows remote
SQL injection vulnerability in graph_view.php in Cacti 0.8.8.g allows remote authenticated users to execute arbitrary SQ
SQL injection vulnerability in tree.php in Cacti 0.8.8g and earlier allows remote authenticated users to execute arbitra
Cacti provides an operational monitoring and fault management framework. Rated high severity (CVSS 8.8), this vulnerabil
Cacti is an open source operational monitoring and fault management framework. Rated high severity (CVSS 8.8), this vuln
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB