Patchfirst
CVE-2024-25641 Public exploit Critical · 9.1 EPSS 86.3%

Cacti RCE vulnerability when importing packages

Cacti · cacti

Summary

The Cacti monitoring framework (product "cacti") contains an arbitrary file write flaw in the import_package() function of its /lib/import.php script, which is reached through the "Package Import" feature and trusts filenames and file content supplied in XML data without validation. An attacker who is authenticated and holds the "Import Templates" permission can exploit it over the network, without user interaction, to write or overwrite files on the web server, including PHP files that lead to arbitrary code execution.

Official description · CVE.org

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.

Breakdown
32.0 / 100
Exploited
Not confirmed
Reports
0
Tactics
0/15

Public exploit code (Metasploit) was available 1 day before disclosure.

  1. Public exploit codeMetasploit1 day before
  2. Disclosedday 0

techniques

No techniques linked

No ATT&CK techniques are linked to this CVE yet. MITRE CTID has not mapped it, and no report passage in the corpus ties it to a technique.

What security researchers reported

Not named in any threat report yet

Also mentioned in 1 community threat pulse (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

5 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close