CVE-2024-25641
Cacti RCE vulnerability when importing packages
A public proof of concept exists; no exploitation attested.
- Published2024-05-14
- Fixed in1.2.27
- WeaknessCWE-20
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2024-05-1415:05CVE publishedNVD
- 2025-04-15Exploit-DB entryExploit-DB
Versions per branch
NVD · CISA-ADP| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 1.2 | < 1.2.27 | 1.2.27 | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 39.x | = 39 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 1.2 | < 1.2.27 | 1.2.27 | CISA-ADP |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- cactiAffected
- = < 1.2.27no fix stated
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2024-06-10
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- cactiUbuntu:Pro:18.04:LTSall versions · fixed in 1.1.38+ds1-1ubuntu0.1~esm3
- cactiUbuntu:Pro:16.04:LTSall versions · fixed in 0.8.8f+ds1-4ubuntu4.16.04.2+esm2
- cactiUbuntu:Pro:14.04:LTSall versions · fixed in 0.8.8b+dfsg-5ubuntu0.2+esm2
- cactiUbuntu:24.04:LTSall versions · fixed in 1.2.26+ds1-1ubuntu0.1
- cactiUbuntu:22.04:LTSall versions · fixed in 1.2.19+ds1-2ubuntu1.1
- cactiUbuntu:20.04:LTSall versions · fixed in 1.2.10+ds1-1ubuntu1.1
- cactiSUSE:Package Hub 15 SP6all versions · fixed in 1.2.27-bp156.2.3.1and 1 other package
- cactiSUSE:Package Hub 15 SP5all versions · fixed in 1.2.27-bp155.2.9.1and 1 other package
15 more package ranges on OSV.dev
Vendor advisories
- CVE-2024-25641 Red Hat Product Security
cacti: remote code execution vulnerability
Fix
- Update Cacti to 1.2.27
Advisories and patches
- github.comPatch
- github.comVendor Advisory
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- none so far ProjectDiscovery
- Proof of concept
- CISA-ADP (SSVC)PoC stated2024-05-17
- PoC-in-GitHub7 repositories, unverifiedknown since 2026-11-015ma1l/CVE-2024-25641leo-mitch/CVE-2024-25641-RCE-Automated-Exploit-Cacti-1.2.26Safarchand/CVE-2024-25641StopThatTalace/CVE-2024-25641-CACTI-RCE-1.2.26D3Ext/CVE-2024-25641
- Metasploit modules
- 1 moduleexploit/multi/http/cacti_package_import_rcerank: excellentModule metadata: Metasploit Framework, © Rapid7, Inc., BSD-3-Clause. Metasploit Framework
Sources
- CISA-ADPSSVC decisionpoc2024-05-17
- CNACVSS 3.19.1known since 2026-10-23
- NVDCVSS 3.17.2read 2026-10-23
- CNAweakness (CWE)CWE-20known since 2026-10-23
- FIRST EPSSEPSS score86.3 %read 2026-11-08
- PoC-in-GitHubproof of concept7known since 2026-11-01
- Exploit-DBdetectionread 2026-11-08
- Metasploit FrameworkMetasploit modules1known since 2026-11-01
- OSVaffected packages—
Identifiers
- EUVD-2024-22957same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- exploit/multi/http/cacti_package_import_rceexploit moduleMetasploit Framework © Rapid7 · BSD-3-Clause
- EDB-52225exploit referenceExploit-DB · BSD-3-Clause
- DLA-3884-1advisory covering several CVEsDebian · LicenseRef-unstated
- openSUSE-SU-2024:0274-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:0276-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:13962-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- USN-6969-1advisory covering several CVEsUbuntu
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- Published
- 2024-05-14
- Last Modified
- 2026-06-17
- NVD status
- Modified
Frequently asked questions
What is CVE-2024-25641?
Is CVE-2024-25641 actively exploited?
What is the CVSS score for CVE-2024-25641?
Running cacti? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- Exploit-DB · Exploit-DB terms of service · terms restrict redistribution
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- Metasploit Framework · BSD-3-Clause
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OpenCVE · OpenCVE terms of service · terms restrict redistribution
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0