PoC Monitor
← All CVEs
CVE-2026-39938published 24 Jun 2026 22:41 UTCData: JSON · API

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.

First public PoC 1.8 daysafter publication · 26 Jun 2026
Public PoCs11 on GitHub
CVSS9.8critical · scored by CNA · CWE-22
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

Cacti cacti
  • < 1.2.31

Fixed in 1.2.31

Mitigation

Upgrade cacti to 1.2.31 or later.

References

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published24 Jun 2026 · t = 0First public PoC26 Jun 2026 · t+1.8d

First 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
RepositoryCreatedStarsAssessment
Polosss/By-Poloss..-..CVE-2026-39938 26 Jun 2026 +1.8 d 0 PoC via PoC Index
Informational 1
RepositoryCreatedStarsAssessment
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 repo

GET /graph_image.php

Query
action=view local_graph_id=1 graph_theme=../../../../../../../etc/passwd graph_theme=../../../../include/config.php graph_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.

GET /graph_image.php
(?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.

GET /graph_image.php
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.

GET /graph_image.php
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