CVE-2023-39513
Cacti vulnerability analysis and mitigation

Overview

Cacti, an open source operational monitoring and fault management framework, was found to contain a Stored Cross-Site-Scripting (XSS) vulnerability identified as CVE-2023-39513. The vulnerability was discovered in September 2023 and affects versions prior to 1.2.25. The vulnerability allows an authenticated user with Template Editor>Data Queries permissions to poison data stored in the Cacti's database that will be executed when viewed by administrative accounts (GitHub Advisory).

Technical details

The vulnerability exists in the host.php script which is used to monitor and manage hosts in the Cacti app. An adversary with Template Editor>Data Queries permissions can configure a data-query template with malicious code appended in the template path through http:///cacti/data_queries.php. When a verbose data query is requested, the formatted template path is rendered in the device's management page without proper HTML escaping, enabling a stored XSS attack. The vulnerability has been assigned a CVSS v3.1 base score of 6.1 MEDIUM (Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N) (GitHub Advisory).

Impact

When exploited, this vulnerability allows attackers to execute arbitrary JavaScript code in victims' browsers, potentially leading to account takeover, performing unauthorized actions on the platform, redirecting users to malicious websites, stealing sensitive information, or participating in browser-based attacks. The impact is particularly severe as it affects administrative Cacti accounts that have General Administration>Sites/Devices/Data privileges (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. For users unable to update immediately, it is recommended to manually filter HTML output and restrict access to Template Editor>Data Queries permissions. Multiple Linux distributions have released security updates addressing this vulnerability, including Debian, Fedora, and Ubuntu (Debian Security, 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