CVE-2026-40084 Details
Description
Cacti is an open source performance and fault management framework. Versions 1.2.30 and prior are vulnerable to Path Traversal through the Report format_file Parameter, causing arbitrary file read. This vulnerability occurs in two stages. In the first stage (stored injection), lib/html_reports.php at line 283 stores $save['format_file'] = $post['format_file'] directly into the database without any validation. In the second stage (file read), lib/reports.php at line 667 concatenates CACTI_PATH_FORMATS . '/' . $format_file, and line 670 then calls file($format_file), reading arbitrary files from the filesystem. This issue has been fixed in version 1.2.31.
A path traversal vulnerability allowing arbitrary file read has been identified in Cacti versions through 1.2.30. This issue arises in the report 'format_file' parameter, where user input is stored in the database without validation. The vulnerability is exploited in two stages: first, the unvalidated input is saved; second, the application reads arbitrary files by concatenating the input with a predefined path and using the 'file' function.
Users can upgrade to Cacti version 1.2.31, which addresses this vulnerability by validating the 'format_file' parameter before saving it to the database and ensuring that the loaded file path is safe.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 26, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/Cacti/cacti/security/advisories/GHSA-mjvw-mhj5-9jcj | CISA-ADP | ExploitMitigationVendor Advisory |
| https://github.com/Cacti/cacti/commit/4c09efaebf3a9faec66969d0b5c4aceaf397f37f | [email protected] | Patch |
| https://github.com/Cacti/cacti/security/advisories/GHSA-mjvw-mhj5-9jcj | [email protected] | ExploitMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| cacti cacti | < 1.2.31 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 29, 2026 | Initial Analysis | [email protected] |
| Jun 26, 2026 | CVE Modified | CISA-ADP |
| Jun 25, 2026 | New CVE Received | [email protected] |