CVE-2024-25641

CVE-2024-25641 is a critical-severity vulnerability in Cacti with a CVSS 3.x base score of 9.1. Its EPSS exploit-prediction score of 86% places it in the 100th percentile, indicating an elevated likelihood of exploitation. The underlying weakness is classified as CWE-20.

Key facts

Description

Cacti provides an operational monitoring and fault management framework. Prior to version 1.2.27, 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 into the `/lib/import.php` script. The function blindly trusts the filename and file content provided within the XML data, and writes such files into the Cacti base path (or even outside, since path traversal sequences are not filtered). This can be exploited to write or overwrite arbitrary files on the web server, leading to execution of arbitrary PHP code or other security impacts. Version 1.2.27 contains a patch for this issue.

Frequently asked questions

What is CVE-2024-25641?
Cacti provides an operational monitoring and fault management framework. Prior to version 1.2.27, 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 into the `/lib/import.php` script. The function blindly trusts the filename and file content provided within the XML data, and writes such files into the Cacti base path (or even outside, since path traversal sequences are not filtered). This can be exploited to write or overwrite arbitrary files on the web server, leading to execution of arbitrary PHP code or other security impacts. Version 1.2.27 contains a patch for this issue.
How severe is CVE-2024-25641?
CVE-2024-25641 has a CVSS 3.x base score of 9.1, rated critical severity. It is exploitable over network with low attack complexity, requires high privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
Is CVE-2024-25641 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 86% (100th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2024-25641?
CVE-2024-25641 primarily affects Cacti. In total, 2 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
How do I fix CVE-2024-25641?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
Does CVE-2024-25641 have an EU (EUVD) identifier?
Yes. CVE-2024-25641 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-22957.
When was CVE-2024-25641 published?
CVE-2024-25641 was published on 2024-05-14 and last updated on 2026-06-17.

References

Affected products (2)

More vulnerabilities in Cacti

All CVEs affecting Cacti →

Other CWE-20 (Improper Input Validation) vulnerabilities

Browse all CWE-20 (Improper Input Validation) vulnerabilities →