CVE-2026-40084

Cacti: Arbitrary File Read via Path Traversal in Report `format_file` Parameter

Published Jun 25, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

This vulnerability allows an attacker to read arbitrary files from the server’s filesystem. The flaw is a classic Path Traversal (CWE‑22) that occurs in two stages: first, the submitted format_file parameter is stored in the database without validation; second, the stored value is concatenated with a directory path and passed to a file reading function, enabling disclosure of any file accessible to the web process. Such access can expose confidential data and serve as a foothold for further attacks.

Affected Systems

The flaw affects the Cacti performance and fault management framework. Versions 1.2.30 and earlier are vulnerable, with the issue remediated in 1.2.31. Any deployment running these versions, particularly in environments where users can create or modify report definitions, is at risk.

Risk and Exploitability

The CVSS score of 6.5 indicates a moderate severity, and no EPSS score is available. The attack requires crafting a payload and submitting it through the report interface, which means the attacker likely needs at least report‑authoring privileges. Once the first stage succeeds, the second stage permits reading any file visible to the web server process. The vulnerability is not listed in CISA’s KEV catalog.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Cacti patch (upgrade to version 1.2.31 or later).
  • Restrict the ability to create or edit reports to privileged users only, and consider removing or disabling the format_file field in the report interface.
  • Implement input validation or sanitization for the format_file parameter by enforcing a whitelist of allowed filenames or disallowing traversal sequences before storing or using the value.

Generated by OpenCVE AI on June 26, 2026 at 01:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Cacti
Cacti cacti
Vendors & Products Cacti
Cacti cacti
Type Values Removed Values Added
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.
Title Cacti: Arbitrary File Read via Path Traversal in Report `format_file` Parameter
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 26, 2026, 12:44 PM
Reserved
Apr 9, 2026, 12:39 AM
Status
Analyzed
Published
Jun 25, 2026, 11:17 PM
Modified
Jun 29, 2026, 6:48 PM