Bug 2280504 (CVE-2024-25641) - CVE-2024-25641 cacti: remote code execution vulnerability
Summary: CVE-2024-25641 cacti: remote code execution vulnerability
Keywords:
Status: NEW
Alias: CVE-2024-25641
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2280505 2280506
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-05-15 00:26 UTC by Robb Gatica
Modified: 2024-05-15 00:26 UTC (History)
0 users

Fixed In Version: cacti 1.2.27
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Robb Gatica 2024-05-15 00:26:35 UTC
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.

https://github.com/Cacti/cacti/commit/eff35b0ff26cc27c82d7880469ed6d5e3bef6210
https://github.com/Cacti/cacti/security/advisories/GHSA-7cmj-g5qc-pj88

Comment 1 Robb Gatica 2024-05-15 00:26:50 UTC
Created cacti tracking bugs for this issue:

Affects: epel-all [bug 2280505]
Affects: fedora-all [bug 2280506]


Note You need to log in before you can comment on or make changes to this bug.