Skip to content
Fencer Vulns
medium 6.1

CVE-2023-39513 json

Stored Cross-site Scripting on host.php verbose data-query debug view in Cacti

published 2023-09-05 3 y ago modified 2026-06-17 4 mo ago also EUVD-2023-43235

cvss
6.1
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.9%
EPSS 0.9% chance of exploitation in 30 days, percentile 60%
public exploits
0
none known

Summary

Cacti is an open source operational monitoring and fault management framework. Affected versions are subject to a Stored Cross-Site-Scripting (XSS) Vulnerability which allows an authenticated user to poison data stored in the _cacti_'s database. These data will be viewed by administrative _cacti_ accounts and execute JavaScript code in the victim's browser at view-time. The script under `host.php` is used to monitor and manage hosts in the _cacti_ app, hence displays useful information such as data queries and verbose logs. _CENSUS_ found that an adversary that is able to configure a data-query template with malicious code appended in the template path, in order to deploy a stored XSS attack against any user with the _General Administration>Sites/Devices/Data_ privileges. A user that possesses the _Template Editor>Data Queries_ permissions can configure the data query template path in _cacti_. Please note that such a user may be a low privileged user. This configuration occurs through `http://<HOST>/cacti/data_queries.php` by editing an existing or adding a new data query template. If a template is linked to a device then the formatted template path will be rendered in the device's management page, when a _verbose data query_ is requested. This vulnerability has been addressed in version 1.2.25. Users are advised to upgrade. Users unable to update should manually filter HTML output.

Patch / fix

  • cacti cacti 1.2.25
  • cacti Debian 12 1.2.24+ds1-1+deb12u2
  • cacti Debian 14, Debian 13 1.2.25+ds1-1

debian advisories DEBIAN-CVE-2023-39513

  • cacti openSUSE Tumbleweed 1.2.25-2.1
  • cacti-spine Package Hub 15 SP5, Package Hub 15 SP4, Package Hub 12 +2 more 1.2.25-bp155.2.3.1
  • cacti Package Hub 15 SP5, Package Hub 15 SP4, Package Hub 12 +2 more 1.2.25-bp155.2.3.1

opensuse advisories openSUSE-SU-2024:13203-1openSUSE-SU-2023:0275-1

  • cacti Alpine 3.18 1.2.26-r0
  • cacti Alpine 3.24, Alpine 3.23, Alpine 3.22 +3 more 1.2.25-r0

alpine advisories ALPINE-CVE-2023-39513

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2023-39513 updated cvss 6.1

cacti: Cross-Site Scripting vulnerability with Device Name when debugging data queries

  • Red Hat All currently supported Red Hat products
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
total
Assessed
2 y ago

Exploit prediction

0.92% chance of exploitation in the next 30 days, higher than 60% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/Cacti/cacti/security/advisories/GHSA-9fj7-8f2j-2rw2 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 6.1 CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N
NVD 3.1 5.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Affected products

  • Cacti cacti

Classification

Weakness
  • CWE-79 Improper Neutralization of Input During Web Page Generation

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.