Cacti
Cacti: Unauthenticated RCE on Graph Image
Cacti is an open source performance and fault management framework. Versions 1.2.30 and prior have unauthenticated LFI through graph_theme and rrdtool IPC serialization hardening. This issue has been resolved in version 1.2.31.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.2.31
Fixed in 1.2.31
Mitigation
Upgrade cacti to 1.2.31 or later.
References
Timeline
Days relative to CVE publicationFirst public PoC 1.8 days after publication; not in CISA KEV. First PoC: Polosss/By-Poloss..-..CVE-2026-39938 (created 26 Jun 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs · 1 informational
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Polosss/By-Poloss..-..CVE-2026-39938 | 26 Jun 2026 +1.8 d | 0 | PoC via PoC Index |
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| kx00007/CVE-2026-39938 | 4 Apr 2026 −82 d | 0 | Informational · write-up |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /graph_image.php
- Query
action=viewlocal_graph_id=1graph_theme=../../../../../../../etc/passwdgraph_theme=../../../../include/config.phpgraph_theme=../../../../../../../var/log/apache2/access.log- PoC User-Agent
<?php system('id'); ?>- Seen in
- 1 repo: Polosss/By-Poloss..-..CVE-2026-39938
- Evidence
- Polosss/By-Poloss..-..CVE-2026-39938/README.md:48 Polosss/By-Poloss..-..CVE-2026-39938/README.md:56 Polosss/By-Poloss..-..CVE-2026-39938/README.md:65 Polosss/By-Poloss..-..CVE-2026-39938/README.md:71
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/graph_image\.php\?(?:.*&)?action=view.*local_graph_id=1.*graph_theme=\.\./\.\./\.\./\.\./\.\./\.\./\.\./etc/passwd.*graph_theme=\.\./\.\./\.\./\.\./include/config\.php.*graph_theme=\.\./\.\./\.\./\.\./\.\./\.\./\.\./var/log/apache2/access\.log
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-39938 Cacti cacti exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/graph_image.php"; http.uri; content:"action=view"; http.uri; content:"local_graph_id=1"; http.uri; content:"graph_theme=../../../../../../../etc/passwd"; http.uri; content:"graph_theme=../../../../include/config.php"; http.uri; content:"graph_theme=../../../../../../../var/log/apache2/access.log"; reference:url,poc.griffinguard.io/cve/CVE-2026-39938; classtype:web-application-attack; sid:9633736; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Cacti cacti exploit attempt (CVE-2026-39938)
id: gg-pocmon-cve-2026-39938-9633736
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-39938. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-39938
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/graph_image.php'
cs-uri-query|contains|all:
- 'action=view'
- 'local_graph_id=1'
- 'graph_theme=../../../../../../../etc/passwd'
- 'graph_theme=../../../../include/config.php'
- 'graph_theme=../../../../../../../var/log/apache2/access.log'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.39938