Skip to main content
Public proof of conceptFix available

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?

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
  1. 2024-05-1415:05CVE publishedNVD
  2. 2025-04-15Exploit-DB entryExploit-DB

Versions per branch

NVD · CISA-ADP
Cacti
BranchAffectedFixed in
1.2< 1.2.271.2.27
Fedoraproject fedora
BranchAffectedFixed in
39.x= 39no fix published
The cacti group cacti
BranchAffectedFixed in
1.2< 1.2.271.2.27

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.

  • cacti
    Affected
    • = < 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

Full record on NVD

Fix

  1. Update Cacti to 1.2.27

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
EDB-52225
Exploit-DB
Metasploit modules
1 moduleexploit/multi/http/cacti_package_import_rcerank: excellentModule metadata: Metasploit Framework, © Rapid7, Inc., BSD-3-Clause.
Metasploit Framework

Sources

Identifiers

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?

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.

Is CVE-2024-25641 actively exploited?

A proof-of-concept exploit exists for CVE-2024-25641, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2024-25641?

CVE-2024-25641 has a CVSS v3 base score of 7.2 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.

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

Sources for this record