CVE-2024-31459 Cacti RCE vulnerability by file include in lib/plugin.php
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.
Other vulnerabilities in Cacti Cacti
- CVE-2022-46169 Cacti Command Injection
- CVE-2026-39893 Cacti: Pre-authentication SQL injection via rfilter RLIKE clause in graph_view.php
- CVE-2026-39938 Cacti: Unauthenticated RCE on Graph Image
- CVE-2026-39955 Cacti has Pre-Authentication SQL Injection via unanchored FILTER_VALIDATE_REGEXP in graph_view.php
- CVE-2023-39361 Unauthenticated SQL Injection in graph_view.php in Cacti
Sources
Also known as CLEANSTART-2024-SW44414, DEBIAN-CVE-2024-31459, UBUNTU-CVE-2024-31459.