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

Medium 5.4 Published Updated

An attacker can inject JavaScript via unescaped variables in the messaging API to impersonate users and modify settings in Cacti.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-29894?

CVE-2024-29894 is a medium-severity cross-site scripting vulnerability in Cacti Cacti, published on 13 May 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-79, CWE-116

Which versions are affected by CVE-2024-29894?

It affects 2 products.

Products include Cacti Cacti, Fedoraproject Fedora.

How do I fix CVE-2024-29894?

Upgrade to a fixed version.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2024-29894 being exploited?

There is no known exploitation of CVE-2024-29894 in the wild and no public exploit code.

All Cacti Cacti vulnerabilities

Sources

Also known as CLEANSTART-2024-QW88175, DEBIAN-CVE-2024-29894, UBUNTU-CVE-2024-29894.

Is CVE-2024-29894 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free