CVE-2024-25641CWE-20

Cacti RCE vulnerability when importing packages

Critical · published May 13, 2024

Patch now

High probability of exploitation

CVSS calls it critical at 9.1. It sits in the 99.7th percentile for exploit probability.

CVSS v3.1
9.1
EPSS
86%
Percentile
99.7
In the wild
Unconfirmed
What it is

🚨 An authenticated user with the right permissions can exploit an arbitrary file write vulnerability in Cacti, potentially executing malicious PHP code on your server! 🔥 Think of this like a hotel check-in process where anyone with a reservation can request to change the room number, and the staff never verify if they should! This oversight allows an attacker to overwrite files, slipping in unwanted extras under the radar. If exploited, this flaw could allow an attacker to write or overwrite critical files, leading to full control over the web server. Imagine a rogue guest taking over the hotel management software, potentially compromising sensitive data and system integrity. This is a critical vulnerability that demands immediate attention!

Put simply

Think of this like a hotel check-in process where anyone with a reservation can request to change the room number, and the staff never verify if they should! This oversight allows an attacker to overwrite files, slipping in unwanted extras under the radar. The vulnerability exists in the `import_package()` function within `/lib/import.php`, which blindly trusts user-supplied filenames and XML content without proper validation, enabling an authenticated user with the 'Import Templates' permission to execute arbitrary PHP code.

What to do

If exploited, this flaw could allow an attacker to write or overwrite critical files, leading to full control over the web server. Imagine a rogue guest taking over the hotel management software, potentially compromising sensitive data and system integrity. This is a critical vulnerability that demands immediate attention! Immediately upgrade to Cacti version 1.2.27 or later to patch this vulnerability. Additionally, review user permissions and restrict the 'Import Templates' permission to trusted users only. Regularly audit your server for any unauthorized changes. You've got this! Patch up and keep your systems safe! 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.86303 · 99.7th percentile
Weakness
CWE-20 · Improper Input Validation
Published
2024-05-13T13:28Z
EPSS history
Timeline
  • 13 MAY 13:28Z
    Cacti RCE vulnerability when importing packages
    cvelistv5