Skip to main content
Mallory
← Back to News
internet-facing-service-vulnerabilitywidely-deployed-product-advisoryproof-of-concept-release

Critical Unauthenticated LFI in Cacti Patched in Version 1.2.31

Vulnerability Disclosure · 3 sources · Updated 5mo ago · First seen Jun 25, 2026

Critical Unauthenticated LFI in Cacti Patched in Version 1.2.31

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.

Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

2 events · Apr 5, 2026 – Jun 19, 2026
  1. Jun 19, 20265mo ago

    GitHub advisory discloses CVE-2026-39938 in Cacti

    GitHub published security advisory GHSA-rm7p-qcqm-x5m6 for Cacti, tracking CVE-2026-39938 and describing an unauthenticated local file inclusion issue via `graph_theme`. The advisory said the earlier `basename()`-based fix was bypassable and that stronger allowlist validation in `cacti_validate_theme()` was used in the 1.2.31 patch.

    Unauthenticated LFI via graph_theme and rrdtool IPC serialization hardening · Advisory · Cacti/cacti · GitHub
  2. Apr 5, 20268mo ago

    Cacti commits initial graph_theme LFI fix in 1.2.x branch

    A Cacti commit authored by Thomas Vincent implemented a security fix to sanitize the `graph_theme` parameter with `basename()` and reject invalid values to prevent local file inclusion. The change was associated with release 1.2.31 in the `1.2.x` branch.

    fix(security): validate graph_theme with basename() to prevent LFI (#… · Cacti/cacti@9871f0c · GitHub
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Cacti
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.