CVE-2024-29894 Cacti Cross-site Scripting vulnerability when using JavaScript based messaging API
MediumCVSS 4.7
EPSS 0.90%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- PHPUbuntuDebian
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/cacti(Debian:12) | < 1.2.24+ds1-1+deb12u3 | 1.2.24+ds1-1+deb12u3 |
| debian/cacti(Debian:12) | = 1.2.24+ds1-1 | No fix listed |
| debian/cacti(Debian:12) | = 1.2.24+ds1-1+deb12u1 | No fix listed |
| debian/cacti(Debian:12) | = 1.2.24+ds1-1+deb12u2 | No fix listed |
| debian/cacti(Debian:13) | < 1.2.27+ds1-1 | 1.2.27+ds1-1 |
| debian/cacti(Debian:14) | < 1.2.27+ds1-1 | 1.2.27+ds1-1 |
| cacti | = < 1.2.27 | No fix listed |
| cacti | < 1.2.27 | 1.2.27 |
| alpine/cacti(Alpine:v3.19) | < 1.2.27-r0 | 1.2.27-r0 |
| alpine/cacti(Alpine:v3.20) | < 1.2.27-r0 | 1.2.27-r0 |
| alpine/cacti(Alpine:v3.21) | < 1.2.27-r0 | 1.2.27-r0 |
| alpine/cacti(Alpine:v3.22) | < 1.2.27-r0 | 1.2.27-r0 |
| alpine/cacti(Alpine:v3.23) | < 1.2.27-r0 | 1.2.27-r0 |
| alpine/cacti(Alpine:v3.24) | < 1.2.27-r0 | 1.2.27-r0 |
| ubuntu/cacti(Ubuntu:24.04) | < 1.2.26+ds1-1ubuntu0.1 | 1.2.26+ds1-1ubuntu0.1 |
| fedoraproject fedora | = 39 | No fix listed |
| ubuntu/cacti(Ubuntu:24.04) | = 1.2.25+ds1-2 | No fix listed |
| ubuntu/cacti(Ubuntu:24.04) | = 1.2.26+ds1-1 | No fix listed |
References
- Debian Security Tracker CVE-2024-29894 vendor-advisory
- https://github.com/Cacti/cacti/security/advisories/GHSA-grj5-8fcj-34gh exploit issue-tracking vendor-advisory
- https://github.com/Cacti/cacti/security/advisories/GHSA-xwqc-7jc4-xm73 exploit issue-tracking vendor-advisory
- lists.fedoraproject.org product
- security.alpinelinux.org vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-6969-1 vendor-advisory
- www.cve.org issue-tracking