CVE-2023-39358
Cacti vulnerability analysis and mitigation

Overview

Cacti, an open source operational monitoring and fault management framework, was found to contain an authenticated SQL injection vulnerability (CVE-2023-39358) that was disclosed on September 5, 2023. The vulnerability affects versions prior to 1.2.25 and allows authenticated users to perform privilege escalation and remote code execution (GitHub Advisory).

Technical details

The vulnerability resides in the reports_user.php file, specifically in the ajax_get_branches function where the tree_id parameter is passed to the reports_get_branch_select function without proper validation. The SQL injection occurs when the tree_id variable is directly used in the WHERE clause of the SQL statement when the tree_id variable is greater than 0. The vulnerability has been assigned a CVSS v3.1 base score of 8.8 HIGH with vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (GitHub Advisory).

Impact

This vulnerability presents a significant security risk as it allows authenticated users to exploit the SQL injection vulnerability to escalate privileges and execute remote code, potentially compromising the system's integrity and confidentiality. Since the application accepts stacked queries, attackers can achieve remote code execution by modifying the 'path_php_binary' value in the database (GitHub Advisory).

Exploitability

The vulnerability requires authentication to exploit, but has low attack complexity and requires no user interaction. A proof of concept exists that demonstrates the vulnerability by causing a 10-second delay in the response through SQL injection (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in Cacti version 1.2.25. Users are strongly advised to upgrade to this version or later. There are no known workarounds for this vulnerability (GitHub Advisory, Fedora Update).

Additional resources


SourceThis report was generated using AI

Related Cacti vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-71287HIGH8.8
  • Cacti logoCacti
  • cacti
NoNoAug 05, 2026
CVE-2026-40083HIGH7.2
  • Cacti logoCacti
  • cacti
NoYesJun 25, 2026
CVE-2026-40941HIGH7.1
  • Cacti logoCacti
  • cacti
NoYesJun 25, 2026
CVE-2026-40084MEDIUM6.5
  • Cacti logoCacti
  • cacti
NoYesJun 25, 2026
CVE-2026-40082MEDIUM5.4
  • Cacti logoCacti
  • cacti
NoYesJun 25, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management