# CVE-2024-31443: Cacti XSS vulnerability in lib/html_tree.php by reading dirty data stored in database

- Severity: Medium 5.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.84%, higher than 58% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-05-13T15:01:44.324Z
- Modified: 2026-06-17T07:28:26.187Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Cacti provides an operational monitoring and fault management framework. Prior to 1.2.27, some of the data stored in `form_save()` function in `data_queries.php` is not thoroughly checked and is used to concatenate the HTML statement in `grow_right_pane_tree()` function from `lib/html.php` , finally resulting in cross-site scripting. Version 1.2.27 contains a patch for the issue.

(As written by CVE List.)

## Affected

- Cacti cacti: < 1.2.27; from - before 1.2.27; before 1.2.27
- fedoraproject fedora: 39

## Every score

- GitHub_M: CVSS:3.1 5.7 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/Cacti/cacti/security/advisories/GHSA-rqc8-78cm-85j3> (exploit, vendor-advisory)
- <https://github.com/Cacti/cacti/commit/f946fa537d19678f938ddbd784a10e3290d275cf> (patch)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RBEOAFKRARQHTDIYSL723XAFJ2Q6624X/> (product)
- <https://lists.debian.org/debian-lts-announce/2024/09/msg00027.html>

## Sources

- CVE List: [CVE-2024-31443](https://www.cve.org/CVERecord?id=CVE-2024-31443), CVE Terms of Use, modified 2025-11-04
- NVD: [CVE-2024-31443](https://nvd.nist.gov/vuln/detail/CVE-2024-31443), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-31443 · Whole record: https://cve.day/CVE-2024-31443.json · Rebuilt by cve.day 2026-11-25T22:58:40.137Z
