CVE-2024-25641 in the critical feed json
Cacti RCE vulnerability when importing packages
published 2024-05-13 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-22957
- cvss
- 9.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 86.3%
- EPSS 86.3% chance of exploitation in 30 days, percentile 99.7%
- public exploits
- 2
- Metasploit, Exploit-DB
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.
Patch / fix
- the_cacti_group cacti 1.2.27
- cacti Debian 12 1.2.24+ds1-1+deb12u3
- cacti Debian 14, Debian 13 1.2.27+ds1-1
debian advisories DEBIAN-CVE-2024-25641
- cacti Ubuntu 20.04 LTS 1.2.10+ds1-1ubuntu1.1
- cacti Ubuntu 22.04 LTS 1.2.19+ds1-2ubuntu1.1
- cacti Ubuntu 24.04 LTS 1.2.26+ds1-1ubuntu0.1
- cacti Ubuntu Pro 18.04 LTS 1.1.38+ds1-1ubuntu0.1~esm3
ubuntu advisories UBUNTU-CVE-2024-25641
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- cacti-spine Package Hub 15 SP6, openSUSE Leap 15.6 1.2.27-bp156.2.3.1
- cacti Package Hub 15 SP6, openSUSE Leap 15.6 1.2.27-bp156.2.3.1
- cacti-spine Package Hub 15 SP5, Package Hub 12, openSUSE Leap 15.5 1.2.27-bp155.2.9.1
- cacti Package Hub 15 SP5, Package Hub 12, openSUSE Leap 15.5 1.2.27-bp155.2.9.1
- cacti openSUSE Tumbleweed 1.2.27-1.1
opensuse advisories openSUSE-SU-2024:0276-1openSUSE-SU-2024:0274-1openSUSE-SU-2024:13962-1
- cacti Alpine 3.24, Alpine 3.23, Alpine 3.22 +3 more 1.2.27-r0
alpine advisories ALPINE-CVE-2024-25641
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-25641 updated cvss 9.1
cacti: remote code execution vulnerability
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Timeline
- First public exploit (Metasploit exploit/multi/http/cacti_package_import_rce)
- Published
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
86.30% chance of exploitation in the next 30 days, higher than 99.7% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- Metasploit exploit/multi/http/cacti_package_import_rce Cacti Import Packages RCE metasploit exploit, excellent rank, 2024-05-12
- EDB-52225 Cacti 1.2.26 - Remote Code Execution (RCE) (Authenticated) webapps, 2025-04-15
- github.com https://github.com/Cacti/cacti/security/advisories/GHSA-7cmj-g5qc-pj88 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H |
| NVD | 3.1 | 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Cacti cacti
- the_cacti_group cacti
Classification
- Weakness
-
- CWE-20 Improper Input Validation
References
-
github.com
/Cacti/cacti/commit/eff35b0ff26cc27c82d7880469ed6d5e3bef6210
patch
-
github.com
/Cacti/cacti/security/advisories/GHSA-7cmj-g5qc-pj88
exploit, vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/RBEOAFKRARQHTDIYSL723XAFJ2Q6624X/
product
-
seclists.org
/fulldisclosure/2024/May/6
mailing-list, third-party-advisory
- lists.debian.org /debian-lts-announce/2024/09/msg00027.html
Sources
- CVE List CVE-2024-25641
- NVD CVE-2024-25641
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.