Skip to content
Fencer Vulns
medium 5.4

CVE-2024-29894 json

Cacti Cross-site Scripting vulnerability when using JavaScript based messaging API

published 2024-05-13 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-26875

cvss
5.4
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.9%
EPSS 0.9% chance of exploitation in 30 days, percentile 59%
public exploits
0
none known

Summary

Cacti 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.

Patch / fix

  • Cacti cacti 1.2.27
  • cacti Debian 12 1.2.24+ds1-1+deb12u3
  • cacti Debian 14, Debian 13 1.2.27+ds1-1

debian advisories DEBIAN-CVE-2024-29894

  • cacti Ubuntu 24.04 LTS 1.2.26+ds1-1ubuntu0.1

ubuntu advisories UBUNTU-CVE-2024-29894

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • cacti-spine Package Hub 15 SP6, openSUSE Leap 15.6 1.2.27-bp156.2.3.1
  • cacti Package Hub 15 SP6, openSUSE Leap 15.6 1.2.27-bp156.2.3.1
  • cacti-spine Package Hub 15 SP5, Package Hub 12, openSUSE Leap 15.5 1.2.27-bp155.2.9.1
  • cacti Package Hub 15 SP5, Package Hub 12, openSUSE Leap 15.5 1.2.27-bp155.2.9.1
  • cacti openSUSE Tumbleweed 1.2.27-1.1

opensuse advisories openSUSE-SU-2024:0276-1openSUSE-SU-2024:0274-1openSUSE-SU-2024:13962-1

  • cacti Alpine 3.24, Alpine 3.23, Alpine 3.22 +3 more 1.2.27-r0

alpine advisories ALPINE-CVE-2024-29894

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-29894 updated cvss 5.4

cacti: XSS vulnerability when using JavaScript based messaging API

  • Red Hat All currently supported Red Hat products
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
2 y ago

Exploit prediction

0.90% chance of exploitation in the next 30 days, higher than 59% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/Cacti/cacti/security/advisories/GHSA-grj5-8fcj-34gh referenced PoC, tagged "exploit" by a source, unverified
  • github.com https://github.com/Cacti/cacti/security/advisories/GHSA-xwqc-7jc4-xm73 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 5.4 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L
NVD 3.1 4.7 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N

Affected products

  • Cacti cacti

Classification

Weakness
  • CWE-116 Improper Encoding or Escaping of Output
  • CWE-79 Improper Neutralization of Input During Web Page Generation

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.