CVE-2024-31459 Cacti RCE vulnerability by file include in lib/plugin.php

High 8.1 Published Updated

Attackers can achieve remote code execution in Cacti by exploiting a file inclusion flaw in plugin handling, often chained with SQL injection.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-31459?

CVE-2024-31459 is a high-severity code injection vulnerability in Cacti Cacti, published on 13 May 2024. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

Cacti provides an operational monitoring and fault management framework. Prior to version 1.2.27, there is a file inclusion issue in the `lib/plugin.php` file. Combined with SQL injection vulnerabilities, remote code execution can be implemented. There is a file inclusion issue with the `api_plugin_hook()` function in the `lib/plugin.php` file, which reads the plugin_hooks and plugin_config tables in database. The read data is directly used to concatenate the file path which is used for file inclusion. Version 1.2.27 contains a patch for the issue.

Weakness: CWE-98

Which versions are affected by CVE-2024-31459?

It affects 2 products.

Products include Cacti Cacti, Fedoraproject Fedora.

How do I fix CVE-2024-31459?

Upgrade to a fixed version.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2024-31459 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-31459 exists.

All Cacti Cacti vulnerabilities

Sources

Also known as CLEANSTART-2024-SW44414, DEBIAN-CVE-2024-31459, UBUNTU-CVE-2024-31459.

Is CVE-2024-31459 in your software?

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

Check your SBOMs for free