CVE-2024-29894: Cacti Cross-site Scripting vulnerability when using JavaScript based messaging API
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. raisemessagejavascript 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 Software
Event History
Frequently Asked Questions
What is the severity of CVE-2024-29894?
CVE-2024-29894 is classified as a residual cross-site scripting vulnerability.
How do I fix CVE-2024-29894?
To fix CVE-2024-29894, upgrade to Cacti version 1.2.27 or later.
Which versions of Cacti are affected by CVE-2024-29894?
CVE-2024-29894 affects all versions of Cacti prior to version 1.2.27.
Is CVE-2024-29894 related to any earlier vulnerabilities?
Yes, CVE-2024-29894 is related to an incomplete fix for CVE-2023-50250.
What specific functions are involved in CVE-2024-29894?
The vulnerability involves the `raise_message_javascript` function from the `lib/functions.php` file.