PT-2024-5186 · Cacti+3 · Cacti+3

Egidioromano

·

Published

2020-03-15

·

Updated

2026-01-20

·

CVE-2024-25641

CVSS v3.1

9.1

Critical

VectorAV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions: Cacti versions prior to 1.2.27
Description: Cacti provides an operational monitoring and fault management framework. An arbitrary file write vulnerability, exploitable through the "Package Import" feature, allows authenticated users having the "Import Templates" permission to execute arbitrary PHP code on the web server. The vulnerability is located within the import package() function defined in the /lib/import.php script. This function blindly trusts the filename and file content provided within the XML data and writes such files into the Cacti base path, potentially leading to the execution of arbitrary PHP code or other security impacts.
Recommendations: For versions prior to 1.2.27, update to version 1.2.27 or later to resolve the issue. As a temporary workaround, consider disabling the import package() function or restricting access to the "Package Import" feature until a patch is applied. Additionally, restrict access to the /lib/import.php script to minimize the risk of exploitation. Avoid using the "Import Templates" permission for non-essential users until the issue is resolved.

Exploit

Fix

LPE

RCE

Weakness Enumeration

Related Identifiers

ALT-PU-2020-1488
ALT-PU-2020-3394
ALT-PU-2020-3430
ALT-PU-2021-2264
ALT-PU-2023-4394
ALT-PU-2023-4396
ALT-PU-2023-5196
ALT-PU-2023-7619
ALT-PU-2023-7621
ALT-PU-2023-8407
ALT-PU-2024-1003
ALT-PU-2024-14329
ALT-PU-2024-14440
ALT-PU-2024-17822
ALT-PU-2024-7120
ALT-PU-2025-1813
BDU:2024-05742
CVE-2024-25641
DLA-3884-1
GHSA-7CMJ-G5QC-PJ88
OPENSUSE-SU-2024:0274-1
OPENSUSE-SU-2024:0276-1
OPENSUSE-SU-2024:13962-1
USN-6969-1

Affected Products

Alt Linux
Cacti
Linuxmint
Ubuntu