CVE-2023-39514 Stored Cross-site Scripting on graphs.php data template formated name view in Cacti
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
- Technology
- PHPUbuntuDebian
Description
Cacti is an open source operational monitoring and fault management framework. Affected versions are subject to a Stored Cross-Site-Scripting (XSS) Vulnerability which allows an authenticated user to poison data stored in the cacti's database. These data will be viewed by administrative cacti accounts and execute JavaScript code in the victim's browser at view-time. The script under graphs.php displays graph details such as data-source paths, data template information and graph related fields. CENSUS found that an adversary that is able to configure either a data-source template with malicious code appended in the data-source name or a device with a malicious payload injected in the device name, may deploy a stored XSS attack against any user with General Administration>Graphs privileges. A user that possesses the Template Editor>Data Templates permissions can configure the data-source name in cacti. Please note that this may be a low privileged user. This configuration occurs through http://<HOST>/cacti/data_templates.php by editing an existing or adding a new data template. If a template is linked to a graph then the formatted template name will be rendered in the graph's management page. A user that possesses the General Administration>Sites/Devices/Data permissions can configure the device name in cacti. This vulnerability has been addressed in version 1.2.25. Users are advised to upgrade. Users unable to upgrade should add manual HTML escaping.
Upgrade path
19 packages: 11 fixed, 7 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/cacti(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/cacti(Ubuntu 24.04) | = 1.2.25+ds1-2; = 1.2.26+ds1-1; = 1.2.26+ds1-1ubuntu0.1; All versions | No fix listed | No fix yet |
| ubuntu/cacti(Ubuntu Pro 14.04) | = 0.8.8b+dfsg-3; = 0.8.8b+dfsg-5; = 0.8.8b+dfsg-5ubuntu0.1; = 0.8.8b+dfsg-5ubuntu0.2 +3 more | No fix listed | No fix yet |
| ubuntu/cacti(Ubuntu Pro 16.04) | = 0.8.8f+ds1-2; = 0.8.8f+ds1-3; = 0.8.8f+ds1-4; = 0.8.8f+ds1-4ubuntu1 +9 more | No fix listed | No fix yet |
| ubuntu/cacti(Ubuntu Pro 18.04) | = 1.1.18+ds1-1; = 1.1.27+ds1-2; = 1.1.27+ds1-3; = 1.1.28+ds1-2 +7 more | No fix listed | No fix yet |
| ubuntu/cacti(Ubuntu Pro 20.04) | = 1.2.4+ds1-2ubuntu3; = 1.2.9+ds1-1ubuntu1; = 1.2.9+ds1-1ubuntu2; = 1.2.10+ds1-1ubuntu1 +5 more | No fix listed | No fix yet |
| ubuntu/cacti(Ubuntu Pro 22.04) | = 1.2.16+ds1-2ubuntu1; = 1.2.19+ds1-2ubuntu1; = 1.2.19+ds1-2ubuntu1+esm1; = 1.2.19+ds1-2ubuntu1.1 +3 more | No fix listed | No fix yet |
| alpine/cacti(Alpine v3.18) | < 1.2.26-r0 | 1.2.26-r0 | Fixed |
| alpine/cacti(Alpine v3.19) | < 1.2.25-r0 | 1.2.25-r0 | Fixed |
| alpine/cacti(Alpine v3.20) | < 1.2.25-r0 | 1.2.25-r0 | Fixed |
| alpine/cacti(Alpine v3.21) | < 1.2.25-r0 | 1.2.25-r0 | Fixed |
| alpine/cacti(Alpine v3.22) | < 1.2.25-r0 | 1.2.25-r0 | Fixed |
| alpine/cacti(Alpine v3.23) | < 1.2.25-r0 | 1.2.25-r0 | Fixed |
| alpine/cacti(Alpine v3.24) | < 1.2.25-r0 | 1.2.25-r0 | Fixed |
| cacti | < 1.2.25; = < 1.2.25 | 1.2.25 | Fixed |
| debian/cacti(Debian 12) | < 1.2.24+ds1-1+deb12u1; = 1.2.24+ds1-1 | 1.2.24+ds1-1+deb12u1 | Fixed |
| debian/cacti(Debian 13) | < 1.2.25+ds1-1 | 1.2.25+ds1-1 | Fixed |
| debian/cacti(Debian 14) | < 1.2.25+ds1-1 | 1.2.25+ds1-1 | Fixed |
| fedoraproject fedora | = 37; = 38 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/cacti(Debian:12) | < 1.2.24+ds1-1+deb12u1 | 1.2.24+ds1-1+deb12u1 |
| debian/cacti(Debian:12) | = 1.2.24+ds1-1 | No fix listed |
| debian/cacti(Debian:13) | < 1.2.25+ds1-1 | 1.2.25+ds1-1 |
| debian/cacti(Debian:14) | < 1.2.25+ds1-1 | 1.2.25+ds1-1 |
| cacti | = < 1.2.25 | No fix listed |
| cacti | < 1.2.25 | 1.2.25 |
| ubuntu/cacti(Ubuntu:22.04) | All versions | No fix listed |
| alpine/cacti(Alpine:v3.18) | < 1.2.26-r0 | 1.2.26-r0 |
| alpine/cacti(Alpine:v3.19) | < 1.2.25-r0 | 1.2.25-r0 |
| alpine/cacti(Alpine:v3.20) | < 1.2.25-r0 | 1.2.25-r0 |
| alpine/cacti(Alpine:v3.21) | < 1.2.25-r0 | 1.2.25-r0 |
| alpine/cacti(Alpine:v3.22) | < 1.2.25-r0 | 1.2.25-r0 |
| alpine/cacti(Alpine:v3.23) | < 1.2.25-r0 | 1.2.25-r0 |
| alpine/cacti(Alpine:v3.24) | < 1.2.25-r0 | 1.2.25-r0 |
| ubuntu/cacti(Ubuntu:24.04) | All versions | No fix listed |
| fedoraproject fedora | = 37 | No fix listed |
| fedoraproject fedora | = 38 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:14.04) | All versions | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:14.04) | = 0.8.8b+dfsg-3 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:14.04) | = 0.8.8b+dfsg-5 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:14.04) | = 0.8.8b+dfsg-5ubuntu0.1 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:14.04) | = 0.8.8b+dfsg-5ubuntu0.2 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:14.04) | = 0.8.8b+dfsg-5ubuntu0.2+esm1 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:14.04) | = 0.8.8b+dfsg-5ubuntu0.2+esm2 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:16.04) | All versions | No fix listed |
Show 42 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/cacti(Ubuntu:Pro:16.04) | = 0.8.8f+ds1-2 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:16.04) | = 0.8.8f+ds1-3 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:16.04) | = 0.8.8f+ds1-4 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:16.04) | = 0.8.8f+ds1-4ubuntu1 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:16.04) | = 0.8.8f+ds1-4ubuntu2 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:16.04) | = 0.8.8f+ds1-4ubuntu3 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:16.04) | = 0.8.8f+ds1-4ubuntu4 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:16.04) | = 0.8.8f+ds1-4ubuntu4.16.04 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:16.04) | = 0.8.8f+ds1-4ubuntu4.16.04.1 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:16.04) | = 0.8.8f+ds1-4ubuntu4.16.04.2 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:16.04) | = 0.8.8f+ds1-4ubuntu4.16.04.2+esm1 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:16.04) | = 0.8.8f+ds1-4ubuntu4.16.04.2+esm2 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:18.04) | All versions | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:18.04) | = 1.1.18+ds1-1 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:18.04) | = 1.1.27+ds1-2 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:18.04) | = 1.1.27+ds1-3 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:18.04) | = 1.1.28+ds1-2 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:18.04) | = 1.1.35+ds1-1 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:18.04) | = 1.1.36+ds1-1 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:18.04) | = 1.1.38+ds1-1 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:18.04) | = 1.1.38+ds1-1ubuntu0.1~esm1 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:18.04) | = 1.1.38+ds1-1ubuntu0.1~esm3 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:18.04) | = 1.1.38+ds1-1ubuntu0.1~esm4 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:20.04) | All versions | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:20.04) | = 1.2.4+ds1-2ubuntu3 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:20.04) | = 1.2.9+ds1-1ubuntu1 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:20.04) | = 1.2.9+ds1-1ubuntu2 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:20.04) | = 1.2.10+ds1-1ubuntu1 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:20.04) | = 1.2.10+ds1-1ubuntu1+esm1 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:20.04) | = 1.2.10+ds1-1ubuntu1.1 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:20.04) | = 1.2.10+ds1-1ubuntu1.1+esm1 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:20.04) | = 1.2.10+ds1-1ubuntu1.1+esm2 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:22.04) | All versions | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:22.04) | = 1.2.16+ds1-2ubuntu1 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:22.04) | = 1.2.19+ds1-2ubuntu1 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:22.04) | = 1.2.19+ds1-2ubuntu1+esm1 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:22.04) | = 1.2.19+ds1-2ubuntu1.1 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:22.04) | = 1.2.19+ds1-2ubuntu1.1+esm1 | No fix listed |
| ubuntu/cacti(Ubuntu:Pro:22.04) | = 1.2.19+ds1-2ubuntu1.1+esm2 | No fix listed |
| ubuntu/cacti(Ubuntu:24.04) | = 1.2.25+ds1-2 | No fix listed |
| ubuntu/cacti(Ubuntu:24.04) | = 1.2.26+ds1-1 | No fix listed |
| ubuntu/cacti(Ubuntu:24.04) | = 1.2.26+ds1-1ubuntu0.1 | No fix listed |
References
- Debian Security Tracker CVE-2023-39514 vendor-advisory
- https://github.com/Cacti/cacti/security/advisories/GHSA-6hrc-2cfc-8hm7 exploit issue-tracking vendor-advisory
- lists.fedoraproject.org mailing-list
- lists.fedoraproject.org mailing-list
- lists.fedoraproject.org mailing-list
- www.debian.org mailing-list
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking
- security.alpinelinux.org vendor-advisory