Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach Cacti web console over network
-
DeliverySubmit crafted parameter to vulnerable endpoint
-
ExploitInject SQL into unsanitized query
-
ExecutionDatabase executes attacker logic
-
PersistExtract credentials or alter records
-
ImpactEscalate to admin or config tampering
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation targets the Cacti web console and requires network reachability to the application's HTTP(S) interface. The supplied CVSS vector encodes AV:N/AC:L/PR:N/UI:N (network, low complexity, no privileges, no user interaction), which would mean no special configuration and no authentication; however, the affected code paths in PR #7039 (data_input.php and related console functions) are administrative pages that in standard Cacti deployments require an authenticated session, so a valid console account is the realistic prerequisite and the PR:N rating is unconfirmed. Limiting factors that reduce real-world risk: the console is typically deployed on internal management networks rather than internet-facing, exploitation likely depends on reaching authenticated admin/data-input functionality, and the precise vulnerable parameter is not disclosed in the public diff. Confirm the exact authentication and configuration prerequisites against advisory GHSA-69gg-mjfm-jjpc. |
| Impact | Signals are partially conflicting and incomplete. The supplied CVSS 3.1 base score is 9.8 (critical) with AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, which on its face implies unauthenticated remote exploitation with full confidentiality, integrity, and availability impact. However, Cacti's administrative and data-input console pages - the areas modified in PR #7039 - typically require an authenticated session, so the PR:N (no privileges) metric is questionable and should be reconciled with the vendor advisory before treating this as pre-auth. No EPSS probability, no SSVC decision data, and no CISA KEV status were provided, so exploitation likelihood and automatability cannot be quantified from these inputs. There is no public exploit identified at time of analysis. Net assessment: a confirmed critical-severity SQL injection in a network-monitoring product that often holds privileged SNMP credentials and sits centrally in IT environments - a genuine patch priority - but the headline 'unauthenticated 9.8' framing likely overstates real-world exposure if exploitation in fact requires console authentication. Verify auth requirements against GHSA-69gg-mjfm-jjpc. |
| Exploit ScenarioDerived | An attacker with reachability to the Cacti web interface submits a crafted parameter to a vulnerable console endpoint, injecting SQL that the application executes against its MySQL database to read or alter records such as user credentials and device SNMP secrets. Because the same release also hardens against command injection and path traversal, a chained attacker could escalate from database access toward configuration tampering or code execution. No public proof-of-concept was identified at time of analysis, and the practical entry point depends on whether console authentication is required. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jun 24, 2026
SQL injection (CWE-89) in the Cacti open-source network monitoring platform is resolved in version 1.2.31, distributed by Alpine Linux as cacti 1.2.31-0 and tracked upstream in Cacti PR #7039 and advisory GHSA-69gg-mjfm-jjpc. The assigned CVSS 3.1 vector (9.8, AV:N/AC:L/PR:N/UI:N) describes a network-reachable, no-interaction database injection, though Cacti's console pages historically require an authenticated session, so the PR:N rating should be verified against the GHSA advisory. There is no public exploit identified at time of analysis and no CISA KEV or EPSS data was supplied, so active-exploitation risk cannot be confirmed from the available inputs.
Earlier versions of this analysis (2)
SQL injection in Cacti (open-source network/server monitoring framework) is resolved in version 1.2.31, distributed to Alpine Linux as cacti 1.2.31-0 and tracked in GitHub advisory GHSA-69gg-mjfm-jjpc. The CWE-89 classification and 'SQLi' tag indicate an attacker can inject crafted SQL through an affected parameter to read or modify the backend database; the published CVSS 3.1 vector (9.8) rates it critical and network-reachable with no privileges, though the linked fix (PR #7039) touches several admin-facing files. There is no public exploit identified at time of analysis, no EPSS score supplied, and no CISA KEV listing.
Cacti network graphing software has been patched in Alpine Linux at package version 1.2.31-0, addressing an unspecified vulnerability tracked as CVE-2026-39893. The upstream Cacti version corresponding to this fix is 1.2.31. No vulnerability description, CVSS score, CWE classification, or exploitation details have been published at time of analysis - the sole confirmed signal is the Alpine Linux vendor advisory indicating a fix was applied.
RemediationAI
Vendor-released patch: upgrade Cacti to 1.2.31 (Alpine Linux package cacti 1.2.31-0) or later, which is the primary and recommended fix per the Cacti advisory GHSA-69gg-mjfm-jjpc (https://github.com/Cacti/cacti/security/advisories/GHSA-69gg-mjfm-jjpc) and pull request https://github.com/Cacti/cacti/pull/7039; Alpine users should run their package manager update to pull 1.2.31-0. If immediate patching is not possible, reduce exposure by restricting network access to the Cacti web console - bind it to an internal management VLAN or place it behind a VPN/reverse-proxy with IP allow-listing so it is not internet-reachable (trade-off: remote operators must use the VPN), and require strong authentication on all console accounts since the affected endpoints are administrative; because the underlying injection point is not isolated in the public diff, a precise endpoint-level block cannot be recommended, making the network-restriction control the most reliable interim measure. Avoid exposing Cacti directly to untrusted networks until the upgrade is applied.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Cacti is a PHP/MySQL-based network graphing and fault-management front end that wraps RRDtool, widely used to poll devices via SNMP and render performance graphs. The vulnerability class is CWE-89 (SQL Injection), meaning attacker-controlled input reaches a SQL statement without proper parameterization, allowing manipulation of query logic against the backing MySQL/MariaDB database. Notably, the referenced fix commit (PR #7039) is a multi-issue security hardening bundle that touches command-injection filtering in data_input.php (rejecting shell metacharacters), a realpath-based path-traversal fix in index.php, CSV formula-injection sanitization via a new cacti_csv_safe() helper in host.php/automation_devices.php, cacti_escapeshellarg() hardening in lib/rrdcheck.php, credential redaction in DB debug logging, and added HTTP security headers - so the exact SQL injection sink for this specific CVE is not isolated in the visible diff and is best confirmed via the GHSA advisory. No CPE strings were provided in the input; affected-product identification relies on the Alpine package metadata and the Cacti reference URLs.
Know when Cacti gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Network-reachable low-complexity SQLi, but Cacti console endpoints normally require a logged-in user, so PR:L rather than the input's PR:N; full DB read/write yields C/I/A High.
Primary rating from Vendor (vendor:alpine).
CVSS VectorVendor: vendor:alpine
Lifecycle Timeline
3DescriptionCVE.org
Alpine Linux: cacti fixed in 1.2.31-0
Executive ViewAI
Cacti, a widely-deployed open-source network monitoring platform, contains a critical SQL injection vulnerability (CVE-2026-39893, CVSS 9.8) affecting versions before 1.2.31. This network-accessible database injection could enable unauthorized data access, configuration manipulation, or lateral movement within monitoring infrastructure. Organizations running Cacti should immediately prioritize patching to prevent potential compromise of network visibility systems.
Apply vendor patch: Cacti 1.2.31 or later. If patching is delayed, immediately: restrict network access to Cacti console from administrative networks only; implement database-level access controls; enable comprehensive audit logging; maintain offline backups; monitor for unusual database query patterns and failed authentication attempts.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Affected Products (CPE)CVE.org
Cacti monitoring platform prior to version 1.2.29 allows authenticated users to achieve remote code execution through th
Cacti is an open source platform which provides a robust and extensible operational monitoring and fault management fram
Cacti provides an operational monitoring and fault management framework. Rated high severity (CVSS 8.8), this vulnerabil
Cacti is a robust performance and fault management framework and a frontend to RRDTool - a Time Series Database (TSDB).
A SQL injection issue in color.php in Cacti 1.2.12 allows an admin to inject SQL via the filter parameter. Rated high se
Cacti is an open source operational monitoring and fault management framework. Rated critical severity (CVSS 9.8), this
SQL injection vulnerability in graph_templates_inputs.php in Cacti 0.8.8b allows remote attackers to execute arbitrary S
SQL injection vulnerability in the host_new_graphs function in graphs_new.php in Cacti 0.8.8f and earlier allows remote
SQL injection vulnerability in graph_view.php in Cacti 0.8.8.g allows remote authenticated users to execute arbitrary SQ
SQL injection vulnerability in tree.php in Cacti 0.8.8g and earlier allows remote authenticated users to execute arbitra
Cacti provides an operational monitoring and fault management framework. Rated high severity (CVSS 8.8), this vulnerabil
Cacti is an open source operational monitoring and fault management framework. Rated high severity (CVSS 8.8), this vuln
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB