CVE-2024-27082
High · 7.6CVSS
7.6
EPSS
0.9%
Published
May 14, 2024
CISA due date
—
Cloudanix analysis
A flaw in the Cacti monitoring tool lets attackers hide harmful code on the server so that it runs automatically in other users' browsers, potentially giving the attacker access to sensitive information or control of accounts.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Application
- Class
- XSS
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The vulnerability permits an authenticated attacker to inject persistent malicious JavaScript into application data stores; the script is later retrieved and executed in the browsers of other users who view the affected pages, enabling session hijacking, data exfiltration, or unauthorized actions within the monitoring interface.
Why it matters to the business
Compromise of monitoring dashboards can expose sensitive network topology and performance data, allow attackers to manipulate operational views, or pivot to other systems, increasing risk of prolonged undetected access and operational disruption for organizations relying on Cacti.
How an attack unfolds
An attacker authenticates with low privileges, submits a crafted payload containing script tags through a vulnerable input field or form, the payload is stored without sanitization, and is subsequently rendered and executed when any user loads the page containing the stored data.
How to fix it
Upgrade all instances of cacti/cacti to the version containing commit b577c294214b7e65a7273031ef8f0045d2a0c5af (equivalent to 1.2.27). After upgrade, clear any previously stored malicious content from the database and review user permissions to enforce least privilege.
How to confirm the fix worked
Confirm the running version reports 1.2.27 or newer; inspect the patched files for proper output encoding or escaping functions; attempt to store and retrieve a benign script tag in test fields to verify sanitization is active.
Typical attack path
- Locate an internet-facing or internal Cacti instance
- Authenticate using a low-privileged account
- Submit malicious JavaScript via an unsanitized input field
- Wait for or lure a higher-privileged user to view the affected page
- Execute browser-based actions such as cookie theft or administrative function abuse
How to detect it
Inspect web server access logs for requests containing HTML tags or encoded script content directed at Cacti endpoints; query the application database for records containing script, img, or onerror attributes in text fields used by the graphing or device management modules.
What your security team should do
- Upgrade every Cacti deployment to the fixed commit immediately
- Audit all stored data fields for residual script content
- Restrict Cacti administrative interfaces to trusted networks
- Enable web application firewall rules that block or sanitize script tags in monitored parameters
- Review and reduce the number of accounts with write access to vulnerable forms
The record
Cacti provides an operational monitoring and fault management framework. Versions of Cacti prior to 1.2.27 are vulnerable to stored cross-site scripting, a type of cross-site scripting where malicious scripts are permanently stored on a target server and served to users who access a particular page. Version 1.2.27 contains a patch for the issue.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:12 | cacti | 0 | No fix |
| Debian:12 | cacti | 0 | 1.2.24+ds1-1+deb12u5 |
| Debian:13 | cacti | 0 | 1.2.27+ds1-1 |
| SUSE:Package Hub 12 | cacti | 0 | 1.2.27-bp155.2.9.1 |
| SUSE:Package Hub 12 | cacti-spine | 0 | 1.2.27-bp155.2.9.1 |
| SUSE:Package Hub 15 SP5 | cacti | 0 | 1.2.27-bp155.2.9.1 |
| SUSE:Package Hub 15 SP5 | cacti-spine | 0 | 1.2.27-bp155.2.9.1 |
| SUSE:Package Hub 15 SP6 | cacti | 0 | 1.2.27-bp156.2.3.1 |
| SUSE:Package Hub 15 SP6 | cacti-spine | 0 | 1.2.27-bp156.2.3.1 |
| Ubuntu:20.04:LTS | cacti | 0 | No fix |
| Ubuntu:22.04:LTS | cacti | 0 | No fix |
| Ubuntu:24.04:LTS | cacti | 0 | No fix |
| Ubuntu:24.10 | cacti | 0 | No fix |
| Ubuntu:25.04 | cacti | 0 | No fix |
| Ubuntu:25.10 | cacti | 0 | No fix |
| Ubuntu:Pro:14.04:LTS | cacti | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | cacti | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | cacti | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | cacti | 0 | No fix |
| Ubuntu:Pro:22.04:LTS | cacti | 0 | No fix |
| openSUSE:Leap 15.5 | cacti | 0 | 1.2.27-bp155.2.9.1 |
| openSUSE:Leap 15.5 | cacti-spine | 0 | 1.2.27-bp155.2.9.1 |
| openSUSE:Leap 15.6 | cacti | 0 | 1.2.27-bp156.2.3.1 |
| openSUSE:Leap 15.6 | cacti-spine | 0 | 1.2.27-bp156.2.3.1 |
| openSUSE:Tumbleweed | cacti | 0 | 1.2.27-1.1 |
Related vulnerabilities
- CVE-2025-24367 Cacti is an open source performance and fault management framework. Also affects cacti
- CVE-2024-54146 Cacti is an open source performance and fault management framework. Also affects cacti
- CVE-2024-48910 DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. Also affects cacti
- CVE-2024-47875 DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. Also affects cacti
- CVE-2024-43365 Cacti is an open source performance and fault management framework. Also affects cacti
- CVE-2024-43364 Cacti is an open source performance and fault management framework. Also affects cacti
- CVE-2024-43362 Cacti is an open source performance and fault management framework. Also affects cacti
- CVE-2024-43363 Cacti is an open source performance and fault management framework. Also affects cacti