CVE-2024-25641
CVE-2024-25641 — Cacti RCE vulnerability when importing packages
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.
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Public exploit
exploit code published, no use observed
EPSS
86%
chance of exploitation in 30 days
CVSS base
9.1
CRITICAL
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
PoC
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Total
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (2)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 9.1 | CVSS 3.1 | CRITICAL | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-20
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
- T1562.003Impair Defenses: Impair Command History Logging
- T1574.006Hijack Execution Flow: Dynamic Linker Hijacking
- T1574.007Hijack Execution Flow: Path Interception by PATH Environment Variable
Public exploit
Capability, not use: code existing is a different claim from anyone running it.
Indexed by
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Search application, proxy, and WAF logs for requests touching /lib/import.php.
References
5 on the record
- github.com/Cacti/cacti/security/advisories/GHSA-7cmj-g5qc-pj88
x_refsource_CONFIRM
- github.com/Cacti/cacti/commit/eff35b0ff26cc27c82d7880469ed6d5e3bef6210
x_refsource_MISC
- lists.fedoraproject.org/archives/list/[email protected]/message/RBEOAFKRARQHTDIYSL723XAFJ2Q6624X/
reference
- seclists.org/fulldisclosure/2024/May/6
reference
- lists.debian.org/debian-lts-announce/2024/09/msg00027.html
reference
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2022-46169 Unauthenticated Command InjectionCVSS 9.8 · CISA KEV
- CVE-2024-29895 Cacti command injection in cmd_realtime.phpCVSS 10.0
- CVE-2026-39902 Cacti: Authenticated RCE on Data InputCVSS 7.2
- CVE-2026-49442 Cacti: User Enumeration via Error MessagesCVSS 5.3
- CVE-2026-93952 Security Advisory 0183CVSS 10.0 · CISA KEV
- CVE-2026-34910 Ubiquiti UniFi OS Improper Input Validation VulnerabilityCVSS 10.0 · CISA KEV
Elsewhere on this site
- Cactievery CVE for this vendor
- The Cacti Groupevery CVE for this vendor
- CWE-20other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.