# CVE-2024-29894: Cacti Cross-site Scripting vulnerability when using JavaScript based messaging API

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L`
- 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.90%, higher than 60% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2024-05-13T14:24:32.871Z
- Modified: 2026-06-17T07:23:19.297Z
- Weaknesses: CWE-79, CWE-116
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Cacti provides an operational monitoring and fault management framework. Versions of Cacti prior to 1.2.27 contain a residual cross-site scripting vulnerability caused by an incomplete fix for CVE-2023-50250. `raise_message_javascript` from `lib/functions.php` now uses purify.js to fix CVE-2023-50250 (among others). However, it still generates the code out of unescaped PHP variables `$title` and `$header`. If those variables contain single quotes, they can be used to inject JavaScript code. An attacker exploiting this vulnerability could execute actions on behalf of other users. This ability to impersonate users could lead to unauthorized changes to settings. Version 1.2.27 fixes this 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.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L`
- NVD: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N`

## References

- <https://github.com/Cacti/cacti/security/advisories/GHSA-grj5-8fcj-34gh> (exploit, vendor-advisory)
- <https://github.com/Cacti/cacti/security/advisories/GHSA-xwqc-7jc4-xm73> (exploit, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RBEOAFKRARQHTDIYSL723XAFJ2Q6624X/> (product)

## Sources

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

---

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