CVE-2024-25641
Cacti PHP Code Injection Vulnerability
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.
INFO
Published Date :
May 14, 2024, 3:05 p.m.
Last Modified :
Dec. 18, 2024, 8:54 p.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
6.0
Exploitability Score :
2.3
Public PoC/Exploit Available at Github
CVE-2024-25641 has a 6 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-25641
.
URL | Resource |
---|---|
http://seclists.org/fulldisclosure/2024/May/6 | Mailing List Third Party Advisory |
https://github.com/Cacti/cacti/commit/eff35b0ff26cc27c82d7880469ed6d5e3bef6210 | Patch |
https://github.com/Cacti/cacti/security/advisories/GHSA-7cmj-g5qc-pj88 | Exploit Vendor Advisory |
https://lists.fedoraproject.org/archives/list/[email protected]/message/RBEOAFKRARQHTDIYSL723XAFJ2Q6624X/ | Product |
http://seclists.org/fulldisclosure/2024/May/6 | Mailing List Third Party Advisory |
https://github.com/Cacti/cacti/commit/eff35b0ff26cc27c82d7880469ed6d5e3bef6210 | Patch |
https://github.com/Cacti/cacti/security/advisories/GHSA-7cmj-g5qc-pj88 | Exploit Vendor Advisory |
https://lists.fedoraproject.org/archives/list/[email protected]/message/RBEOAFKRARQHTDIYSL723XAFJ2Q6624X/ | Product |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
PoC for CVE-2024-25641 Authenticated RCE on Cacti v1.2.26
Python
Fully automated PoC - CVE-2024-25641 - RCE - Cacti < v1.2.26 🌵
Python
PoC for CVE-2024-25641 Authenticated RCE on Cacti v1.2.26
cacti exploit proof-of-concept rce rce-exploit cve-2024-25641 explotation poc python3
Python
CVE-2024-25641 - RCE Automated Exploit - Cacti 1.2.26
Python
This repository automates the process of exploiting CVE-2024-25641 on Cacti 1.2.26
automation cacti cve-2024-25641 exploit penetration-testing python3
Python PHP
📡 PoC auto collect from GitHub. ⚠️ Be careful Malware.
security cve exploit poc vulnerability
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-25641
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-25641
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Dec. 18, 2024
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H Added CWE NIST NVD-CWE-noinfo Added CPE Configuration OR *cpe:2.3:a:cacti:cacti:*:*:*:*:*:*:*:* versions up to (excluding) 1.2.27 Added CPE Configuration OR *cpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:* Changed Reference Type http://seclists.org/fulldisclosure/2024/May/6 No Types Assigned http://seclists.org/fulldisclosure/2024/May/6 Mailing List, Third Party Advisory Changed Reference Type http://seclists.org/fulldisclosure/2024/May/6 No Types Assigned http://seclists.org/fulldisclosure/2024/May/6 Mailing List, Third Party Advisory Changed Reference Type https://github.com/Cacti/cacti/commit/eff35b0ff26cc27c82d7880469ed6d5e3bef6210 No Types Assigned https://github.com/Cacti/cacti/commit/eff35b0ff26cc27c82d7880469ed6d5e3bef6210 Patch Changed Reference Type https://github.com/Cacti/cacti/commit/eff35b0ff26cc27c82d7880469ed6d5e3bef6210 No Types Assigned https://github.com/Cacti/cacti/commit/eff35b0ff26cc27c82d7880469ed6d5e3bef6210 Patch Changed Reference Type https://github.com/Cacti/cacti/security/advisories/GHSA-7cmj-g5qc-pj88 No Types Assigned https://github.com/Cacti/cacti/security/advisories/GHSA-7cmj-g5qc-pj88 Exploit, Vendor Advisory Changed Reference Type https://github.com/Cacti/cacti/security/advisories/GHSA-7cmj-g5qc-pj88 No Types Assigned https://github.com/Cacti/cacti/security/advisories/GHSA-7cmj-g5qc-pj88 Exploit, Vendor Advisory Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/RBEOAFKRARQHTDIYSL723XAFJ2Q6624X/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/RBEOAFKRARQHTDIYSL723XAFJ2Q6624X/ Product Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/RBEOAFKRARQHTDIYSL723XAFJ2Q6624X/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/RBEOAFKRARQHTDIYSL723XAFJ2Q6624X/ Product -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference http://seclists.org/fulldisclosure/2024/May/6 Added Reference https://github.com/Cacti/cacti/commit/eff35b0ff26cc27c82d7880469ed6d5e3bef6210 Added Reference https://github.com/Cacti/cacti/security/advisories/GHSA-7cmj-g5qc-pj88 Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/RBEOAFKRARQHTDIYSL723XAFJ2Q6624X/ -
CVE Modified by [email protected]
Jun. 10, 2024
Action Type Old Value New Value Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/RBEOAFKRARQHTDIYSL723XAFJ2Q6624X/ [No types assigned] Added Reference GitHub, Inc. http://seclists.org/fulldisclosure/2024/May/6 [No types assigned] -
CVE Received by [email protected]
May. 14, 2024
Action Type Old Value New Value Added 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. Added Reference GitHub, Inc. https://github.com/Cacti/cacti/security/advisories/GHSA-7cmj-g5qc-pj88 [No types assigned] Added Reference GitHub, Inc. https://github.com/Cacti/cacti/commit/eff35b0ff26cc27c82d7880469ed6d5e3bef6210 [No types assigned] Added CWE GitHub, Inc. CWE-20 Added CVSS V3.1 GitHub, Inc. AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-25641
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-25641
weaknesses.