Name | CVE-2023-39359 |
Description | Cacti is an open source operational monitoring and fault management framework. An authenticated SQL injection vulnerability was discovered which allows authenticated users to perform privilege escalation and remote code execution. The vulnerability resides in the `graphs.php` file. When dealing with the cases of ajax_hosts and ajax_hosts_noany, if the `site_id` parameter is greater than 0, it is directly reflected in the WHERE clause of the SQL statement. This creates an SQL injection vulnerability. This issue has been addressed in version 1.2.25. Users are advised to upgrade. There are no known workarounds for this vulnerability. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DSA-5550-1 |
Vulnerable and fixed packages
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 | fixed |
| bullseye | 1.2.16+ds1-2+deb11u3 | fixed |
| 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 | fixed |
| 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 | (not affected) | | | |
cacti | source | bullseye | 1.2.16+ds1-2+deb11u2 | | DSA-5550-1 | |
cacti | source | bookworm | 1.2.24+ds1-1+deb12u1 | | DSA-5550-1 | |
cacti | source | (unstable) | 1.2.25+ds1-1 | | | |
Notes
[buster] - cacti <not-affected> (Vulnerable code introduced later)
https://github.com/Cacti/cacti/security/advisories/GHSA-q4wh-3f9w-836h
https://github.com/cacti/cacti/commit/7459ff57abcd97ab8bc7a19de9e308ca62c17d38 (release/1.2.25)
Introduced by: https://github.com/cacti/cacti/commit/518800fdb0bd25f311a530d78bab635b3c96c500 (release/1.2.7)