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 treeid variable is directly used in the WHERE clause of the SQL statement when the treeid 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 'pathphpbinary' value in the database (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-2025-26520CRITICAL9.8
  • CactiCacti
  • cacti
NoYesFeb 12, 2025
CVE-2005-10004HIGH8.7
  • CactiCacti
  • cacti
NoYesAug 30, 2025
CVE-2025-24367HIGH8.7
  • CactiCacti
  • cacti
NoYesJan 27, 2025
CVE-2025-66399HIGH7.4
  • CactiCacti
  • cacti
NoYesDec 02, 2025
CVE-2025-24368MEDIUM6.9
  • CactiCacti
  • cacti
NoYesJan 27, 2025

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