CVE-2023-39358

NameCVE-2023-39358
DescriptionCacti 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 `reports_user.php` file. In `ajax_get_branches`, the `tree_id` parameter is passed to the `reports_get_branch_select` function without any validation. This issue has been addressed in version 1.2.25. Users are advised to upgrade. There are no known workarounds for this vulnerability.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
cacti (PTS)bullseye1.2.16+ds1-2+deb11u3fixed
bullseye (security)1.2.16+ds1-2+deb11u4fixed
bookworm1.2.24+ds1-1+deb12u4fixed
bookworm (security)1.2.24+ds1-1+deb12u2fixed
sid, trixie1.2.28+ds1-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
cactisourcebuster(not affected)
cactisourcebullseye(not affected)
cactisourcebookworm1.2.24+ds1-1+deb12u1
cactisource(unstable)1.2.25+ds1-1

Notes

[bullseye] - cacti <not-affected> (Vulnerable code not present)
[buster] - cacti <not-affected> (Vulnerable code introduced later)
https://github.com/Cacti/cacti/security/advisories/GHSA-gj95-7xr8-9p7g
https://github.com/cacti/cacti/commit/318c377180039b22970f1f6636aa586d3b84c44d (release/1.2.25)
https://github.com/cacti/cacti/commit/58a2df17c94fda1cdae74613153524ad1a6aae82 (release/1.2.25)
Introduced by: https://github.com/cacti/cacti/commit/26e2dbacf298265ce9e517f6f1f008ec46167b5d (release/1.2.20)

Search for package or bug name: Reporting problems