Name | CVE-2024-25641 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-3884-1 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
cacti (PTS) | jessie, jessie (lts) | 0.8.8b+dfsg-8+deb8u10 | vulnerable |
stretch (security), stretch (lts), stretch | 0.8.8h+ds1-10+deb9u2 | vulnerable | |
buster (security), buster, buster (lts) | 1.2.2+ds1-2+deb10u6 | vulnerable | |
bullseye | 1.2.16+ds1-2+deb11u3 | vulnerable | |
bullseye (security) | 1.2.16+ds1-2+deb11u4 | fixed | |
bookworm | 1.2.24+ds1-1+deb12u4 | fixed | |
bookworm (security) | 1.2.24+ds1-1+deb12u2 | vulnerable | |
sid, trixie | 1.2.28+ds1-3 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
cacti | source | jessie | (unfixed) | end-of-life | ||
cacti | source | stretch | (unfixed) | end-of-life | ||
cacti | source | buster | (unfixed) | end-of-life | ||
cacti | source | bullseye | 1.2.16+ds1-2+deb11u4 | DLA-3884-1 | ||
cacti | source | bookworm | 1.2.24+ds1-1+deb12u3 | |||
cacti | source | (unstable) | 1.2.27+ds1-1 |
https://github.com/Cacti/cacti/security/advisories/GHSA-7cmj-g5qc-pj88
https://github.com/Cacti/cacti/commit/eff35b0ff26cc27c82d7880469ed6d5e3bef6210
https://github.com/Cacti/cacti/commit/624673fd417a920adbbfb4b6d6eb7ddb35a9f891 (release/1.2.27)