
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-40084 is a path traversal vulnerability in Cacti, an open source performance and fault management framework, that allows authenticated attackers to read arbitrary files from the server filesystem via the Report format_file parameter. All versions up to and including 1.2.30 are affected; the issue was fixed in version 1.2.31. The vulnerability was published on June 25, 2026, and carries a CVSS v3.1 base score of 6.5 (Medium) (GitHub Advisory, Red Hat Bugzilla).
The vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) and operates in two distinct stages. In the first stage (stored injection), lib/html_reports.php at line 283 stores the user-supplied format_file POST parameter directly into the database without any sanitization: $save['format_file'] = $post['format_file']. In the second stage (file read), lib/reports.php at line 667 concatenates CACTI_PATH_FORMATS . '/' . $format_file, and line 670 calls file($format_file), which reads the resolved path — including any traversal sequences — from the filesystem. Exploitation requires an authenticated user with report management privileges (realm 22). The fix applies basename() to the format_file value at both the save and load paths to strip directory traversal sequences (GitHub Advisory, GitHub Commit).
Successful exploitation allows an authenticated attacker to read arbitrary files from the server filesystem that the web server process has permission to access. This can expose highly sensitive files such as include/config.php, which contains database credentials, potentially enabling further compromise of the underlying database and lateral movement within the environment. There is no integrity or availability impact; the vulnerability is limited to confidentiality (GitHub Advisory).
format_file parameter containing a path traversal sequence:POST /cacti/reports.php
action=save&save_component_report=1&id=1&format_file=../../include/config.php&...format_file value is stored directly in the Cacti database via lib/html_reports.php line 283.lib/reports.php concatenates the stored traversal path with CACTI_PATH_FORMATS and calls file(), reading the target file (e.g., config.php) and returning its contents in the report output.config.php (GitHub Advisory)./cacti/reports.php with action=save and a format_file parameter containing ../ or ..\ sequences; subsequent GET requests to view or generate the same report ID.reports.php with encoded or plaintext path traversal strings (e.g., format_file=../../include/config.php); Cacti application logs showing report generation for reports with unusual format file names.format_file column contains path traversal sequences (e.g., values starting with ../ or absolute paths) rather than simple filenames.include/config.php) may be reflected in OS-level file access audit logs if enabled (GitHub Advisory).Upgrade Cacti to version 1.2.31 or later, which applies basename() to the format_file parameter at both the save (lib/html_reports.php) and load (lib/reports.php) stages, preventing path traversal. As a workaround prior to patching, restrict report creation privileges to fully trusted users only and implement web application firewall (WAF) rules to reject requests containing ../ or ..\ in the format_file parameter. Additionally, monitor file access logs for suspicious read patterns targeting sensitive configuration files (GitHub Advisory, GitHub Commit).
The vulnerability was reported by researcher TristanInSec and coordinated by netniV from the Cacti project, who published the advisory on June 19, 2026. Red Hat tracked the issue via Bugzilla (Bug 2493262) and assigned it a medium severity rating. No significant broader media coverage or notable social media commentary beyond standard CVE tracking feeds has been observed (GitHub Advisory, Red Hat Bugzilla).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."