CVE-2024-43362
NoneCVSS
—
EPSS
38.6%
Published
Oct 7, 2024
CISA due date
—
Cloudanix analysis
A flaw lets users who can add monitoring links secretly insert harmful code that runs for anyone viewing those links, potentially stealing access or causing unwanted actions.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Other
- Component
- Application
- Class
- XSS
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Unsanitized fileurl parameter in links.php is stored and reflected via print() in link.php and index.php, enabling persistent script injection into HTML rendered for other users.
Why it matters to the business
Attackers with link-creation rights can hijack sessions, steal credentials, or perform unauthorized actions inside the monitoring platform, risking data exposure and operational disruption; upgrade urgency is moderate given rising EPSS and public disclosure in October 2024.
How an attack unfolds
An authenticated user with external-link privileges crafts a POST request to links.php containing a fileurl value with embedded script tags; the payload is persisted in the database and later emitted unsafely by print() calls, executing the script in the context of any user who views the links page.
How to fix it
Upgrade cacti/cacti to the commit f9a7cd3d76d0a5d09cff753f9c4bb5fd26c2104c (release 1.2.28); no workarounds exist.
How to confirm the fix worked
Confirm the installed version contains commit f9a7cd3d76d0a5d09cff753f9c4bb5fd26c2104c; retest link creation with known XSS payloads to verify sanitization.
Typical attack path
- Obtain or compromise an account permitted to create external links
- Submit crafted POST to links.php with malicious fileurl payload
- Wait for administrators or other users to load link.php or index.php
- Script executes in victim browser to exfiltrate cookies, perform actions, or pivot
How to detect it
Review web-server access logs and application logs for POST requests to links.php containing fileurl values with HTML or script tags; inspect the links table for stored payloads; check user sessions for unexpected actions after link views.
- POST.*links.php.*fileurl=
- fileurl.*<script
- fileurl.*javascript:
- fileurl.*onerror=
- fileurl.*onload=
What your security team should do
- Immediately schedule upgrade to 1.2.28 for all Cacti instances
- Audit existing external links for unexpected fileurl values
- Restrict link-creation privilege to the minimum necessary accounts
- Monitor EPSS trend and re-evaluate if exploit code appears
The record
Cacti is an open source performance and fault management framework. The `fileurl` parameter is not properly sanitized when saving external links in `links.php` . Morever, the said fileurl is placed in some html code which is passed to the `print` function in `link.php` and `index.php`, finally leading to stored XSS. Users with the privilege to create external links can manipulate the `fileurl` parameter in the http post request while creating external links to perform stored XSS attacks. The vulnerability known as XSS (Cross-Site Scripting) occurs when an application allows untrusted user input to be displayed on a web page without proper validation or escaping. This issue has been addressed in release version 1.2.28. All users are advised to upgrade. There are no known workarounds for this issue.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | cacti | 0 | No fix |
| Debian:11 | cacti | 0 | 1.2.16+ds1-2+deb11u5 |
| Debian:12 | cacti | 0 | No fix |
| Debian:12 | cacti | 0 | 1.2.24+ds1-1+deb12u5 |
| Debian:13 | cacti | 0 | No fix |
| 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 |
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-43363 Cacti is an open source performance and fault management framework. Also affects cacti
- CVE-2024-34340 Cacti provides an operational monitoring and fault management framework. Also affects cacti