CVE-2024-25641: Cacti RCE vulnerability when importing packages

Published May 13, 2024
·
Updated

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 importpackage() 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.

Affected Software

12 affected componentsFixes available
Cacti Cacti<1.2.27
Fedoraproject Fedora=39
debian/cacti<1.2.24+ds1-1+deb12u3
1.2.24+ds1-1+deb12u3
debian/cacti<1.2.27+ds1-1
1.2.27+ds1-1
debian/cacti<1.2.27+ds1-1
1.2.27+ds1-1
debian/cacti
1.2.24+ds1-1+deb12u51.2.30+ds1-11.2.31+ds1-4
alpine/cacti<1.2.27-r0
1.2.27-r0
alpine/cacti<1.2.27-r0
1.2.27-r0
alpine/cacti<1.2.27-r0
1.2.27-r0
alpine/cacti<1.2.27-r0
1.2.27-r0
alpine/cacti<1.2.27-r0
1.2.27-r0
alpine/cacti<1.2.27-r0
1.2.27-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/cacti to a version that resolves this vulnerability.

    Fixed in 1.2.24+ds1-1+deb12u3
  2. Upgrade

    Upgrade debian/cacti to a version that resolves this vulnerability.

    Fixed in 1.2.27+ds1-1
  3. Upgrade

    Upgrade debian/cacti to a version that resolves this vulnerability.

    Fixed in 1.2.24+ds1-1+deb12u5Fixed in 1.2.30+ds1-1Fixed in 1.2.31+ds1-4
  4. Upgrade

    Upgrade alpine/cacti to a version that resolves this vulnerability.

    Fixed in 1.2.27-r0
  5. Upgrade

    Upgrade Cacti to a version that resolves this vulnerability.

    Fixed in 1.2.27

Event History

May 13, 2024
CVE Published
via MITRE·01:28 PM
Data Sourced
via MITRE·01:28 PM
DescriptionSeverityWeakness
May 14, 2024
Data Sourced
via NVD·03:05 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·03:05 PM
DescriptionSeverityAffected Software
Aug 26, 2024
Exploit Published
01:34 PM

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2024-25641?

CVE-2024-25641 has been classified as a high severity vulnerability due to its potential to allow arbitrary PHP code execution.

2

How do I fix CVE-2024-25641?

To mitigate CVE-2024-25641, update Cacti to version 1.2.27 or later.

3

Who is affected by CVE-2024-25641?

CVE-2024-25641 affects all versions of Cacti prior to 1.2.27, particularly those with the 'Import Templates' permission.

4

What are the implications of CVE-2024-25641?

The implications of CVE-2024-25641 include unauthorized access and execution of arbitrary PHP code by authenticated users.

5

When was CVE-2024-25641 reported?

CVE-2024-25641 was reported in May 2024.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203