Skip to main content
← All vulnerabilities
CVE-2024-25641

Cacti RCE vulnerability when importing packages

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.2.27
1 on Exploit-DB, 1 Metasploit module, 7 proofs of concept on GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Public exploit on Exploit-DB

    EDB-52225

  4. Record last updated
  5. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • Cacti cacti

    fixed in 1.2.27

References 13

GitHub · Cacti/cacti

lists.fedoraproject.org

seclists.org

Exploit-DB

GitHub · rapid7/metasploit-framework

GitHub · 5ma1l/CVE-2024-25641

GitHub · D3Ext/CVE-2024-25641

GitHub · GabrielCF10/CVE-2024-25641---Cacti

GitHub · Safarchand/CVE-2024-25641

GitHub · StopThatTalace/CVE-2024-25641-CACTI-RCE-1.2.26

GitHub · leo-mitch/CVE-2024-25641-RCE-Automated-Exploit-Cacti-1.2.26

GitHub · regantemudo/CVE-2024-25641-Exploit-for-Cacti-1.2.26