Skip to main content

Cacti CVE-2026-39893

CRITICAL
SQL Injection (CWE-89)
N/A vendor:alpine
9.8
CVSS 3.1 · Vendor: vendor:alpine
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach Cacti web console over network
  2. Delivery
    Submit crafted parameter to vulnerable endpoint
  3. Exploit
    Inject SQL into unsanitized query
  4. Execution
    Database executes attacker logic
  5. Persist
    Extract credentials or alter records
  6. Impact
    Escalate 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – 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)
v2 Jun 24, 2026 - 22:28 cvss changed CVSS 9.8

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.

v1 Jun 18, 2026 - 11:06

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

Vendor (vendor:alpine) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (vendor:alpine).

CVSS VectorVendor: vendor:alpine

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
Analysis Updated
Jun 24, 2026 - 22:29 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 24, 2026 - 22:28 vuln.today
v2 - CVSS changed
CVSS changed
Jun 24, 2026 - 22:22 NVD
9.8 (CRITICAL)

DescriptionCVE.org

Alpine Linux: cacti fixed in 1.2.31-0

Executive ViewAI

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.4%
Top 70% exploitable
Prevalence
Medium
popular open-source network monitoring tool, common in IT but not universal
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

Affected Products (CPE)CVE.org

cpe:2.3:a:cacti:cacti:*:*:*:*:*:*:*:*

More in Cacti

View all
CVE-2025-24367 HIGH POC
8.7 Jan 27

Cacti monitoring platform prior to version 1.2.29 allows authenticated users to achieve remote code execution through th

CVE-2022-46169 CRITICAL POC
9.8 Dec 05

Cacti is an open source platform which provides a robust and extensible operational monitoring and fault management fram

CVE-2023-49085 HIGH POC
8.8 Dec 22

Cacti provides an operational monitoring and fault management framework. Rated high severity (CVSS 8.8), this vulnerabil

CVE-2023-49084 HIGH POC
8.8 Dec 21

Cacti is a robust performance and fault management framework and a frontend to RRDTool - a Time Series Database (TSDB).

CVE-2020-14295 HIGH POC
7.2 Jun 17

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

CVE-2023-39361 CRITICAL POC
9.8 Sep 05

Cacti is an open source operational monitoring and fault management framework. Rated critical severity (CVSS 9.8), this

CVE-2017-1000031 HIGH POC
8.8 Jul 17

SQL injection vulnerability in graph_templates_inputs.php in Cacti 0.8.8b allows remote attackers to execute arbitrary S

CVE-2015-8604 HIGH POC
8.8 Apr 11

SQL injection vulnerability in the host_new_graphs function in graphs_new.php in Cacti 0.8.8f and earlier allows remote

CVE-2016-3659 HIGH POC
8.8 Apr 11

SQL injection vulnerability in graph_view.php in Cacti 0.8.8.g allows remote authenticated users to execute arbitrary SQ

CVE-2016-3172 HIGH POC
8.8 Apr 12

SQL injection vulnerability in tree.php in Cacti 0.8.8g and earlier allows remote authenticated users to execute arbitra

CVE-2023-51448 HIGH POC
8.8 Dec 22

Cacti provides an operational monitoring and fault management framework. Rated high severity (CVSS 8.8), this vulnerabil

CVE-2023-39358 HIGH POC
8.8 Sep 05

Cacti is an open source operational monitoring and fault management framework. Rated high severity (CVSS 8.8), this vuln

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy