CVE-2024-29894

NameCVE-2024-29894
DescriptionCacti provides an operational monitoring and fault management framework. Versions of Cacti prior to 1.2.27 contain a residual cross-site scripting vulnerability caused by an incomplete fix for CVE-2023-50250. `raise_message_javascript` from `lib/functions.php` now uses purify.js to fix CVE-2023-50250 (among others). However, it still generates the code out of unescaped PHP variables `$title` and `$header`. If those variables contain single quotes, they can be used to inject JavaScript code. An attacker exploiting this vulnerability could execute actions on behalf of other users. This ability to impersonate users could lead to unauthorized changes to settings. Version 1.2.27 fixes this issue.
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)jessie, jessie (lts)0.8.8b+dfsg-8+deb8u10vulnerable
stretch (security), stretch (lts), stretch0.8.8h+ds1-10+deb9u2vulnerable
buster (security), buster, buster (lts)1.2.2+ds1-2+deb10u6vulnerable
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+deb12u2vulnerable
sid, trixie1.2.28+ds1-2fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
cactisourcejessie(unfixed)end-of-life
cactisourcestretch(unfixed)end-of-life
cactisourcebuster(unfixed)end-of-life
cactisourcebullseye(not affected)
cactisourcebookworm1.2.24+ds1-1+deb12u3
cactisource(unstable)1.2.27+ds1-1

Notes

[bullseye] - cacti <not-affected> (Vulnerable code not present)
https://github.com/Cacti/cacti/security/advisories/GHSA-grj5-8fcj-34gh
Fixed by: https://github.com/Cacti/cacti/commit/9c75f8da5b609d17c8c031fd46362f730358b792 (1.2.27)
Follow-up fix: https://github.com/Cacti/cacti/commit/6a82fa1abe81d96238a87727087572ff749d0a8d (1.2.x)
Follow-up of CVE-2023-50250

Search for package or bug name: Reporting problems