CVE-2024-31443
Cacti XSS vulnerability in lib/html_tree.php by reading dirty data stored in database
Cacti provides an operational monitoring and fault management framework. Prior to 1.2.27, some of the data stored in form_save() function in data_queries.php is not thoroughly checked and is used to concatenate the HTML statement in grow_right_pane_tree() function from lib/html.php , finally resulting in cross-site scripting. Version 1.2.27 contains a patch for the issue.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
5.7
Cacti XSS vulnerability in lib/html_tree.php by reading dirty data stored in database
Cacti provides an operational monitoring and fault management framework. Prior to 1.2.27, some of the data stored in form_save() function in data_queries.php is not thoroughly checked and is used to concatenate the HTML statement in grow_right_pane_tree() function from lib/html.php , finally resulting in cross-site scripting. Version 1.2.27 contains a patch for the issue.
- Record
CVE-2024-31443- CVSS 3.1
- 5.7 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-79
- Updated
- 2026-11-02
EUVDEUVD-2024-29332
5.7
Cacti provides an operational monitoring and fault management framework. Prior to 1.2.27, some of the data stored in form_save() function in data_queries.php is not thoroughly checked and is used to concatenate the HTML statement in grow_right_pane_tree() function from lib/html.php , finally resulting in cross-site scripting. Version 1.2.27 contains a patch for the issue.
- Record
EUVD-2024-29332- CVSS 3.1
- 5.7 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
NVD
5.7
Cacti provides an operational monitoring and fault management framework. Prior to 1.2.27, some of the data stored in form_save() function in data_queries.php is not thoroughly checked and is used to concatenate the HTML statement in grow_right_pane_tree() function from lib/html.php , finally resulting in cross-site scripting. Version 1.2.27 contains a patch for the issue.
- Record
CVE-2024-31443- CVSS 3.1
- 5.7 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H - CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
OSVALPINE-CVE-2024-31443
5.4
Cacti provides an operational monitoring and fault management framework. Prior to 1.2.27, some of the data stored in form_save() function in data_queries.php is not thoroughly checked and is used to concatenate the HTML statement in grow_right_pane_tree() function from lib/html.php , finally resulting in cross-site scripting. Version 1.2.27 contains a patch for the issue.
- Record
ALPINE-CVE-2024-31443- CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N - Updated
- 2026-11-03
OSV
5.7
Cacti XSS vulnerability in lib/html_tree.php by reading dirty data stored in database
Cacti provides an operational monitoring and fault management framework. Prior to 1.2.27, some of the data stored in form_save() function in data_queries.php is not thoroughly checked and is used to concatenate the HTML statement in grow_right_pane_tree() function from lib/html.php , finally resulting in cross-site scripting. Version 1.2.27 contains a patch for the issue.
- Record
CVE-2024-31443- CVSS 3.1
- 5.7 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-79
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2024-31443
5.4
Cacti provides an operational monitoring and fault management framework. Prior to 1.2.27, some of the data stored in form_save() function in data_queries.php is not thoroughly checked and is used to concatenate the HTML statement in grow_right_pane_tree() function from lib/html.php , finally resulting in cross-site scripting. Version 1.2.27 contains a patch for the issue.
- Record
DEBIAN-CVE-2024-31443- CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N - Updated
- 2026-11-02
Show 5 moreShow less
OSVUBUNTU-CVE-2024-31443
5.4
Cacti provides an operational monitoring and fault management framework. Prior to 1.2.27, some of the data stored in form_save() function in data_queries.php is not thoroughly checked and is used to concatenate the HTML statement in grow_right_pane_tree() function from lib/html.php , finally resulting in cross-site scripting. Version 1.2.27 contains a patch for the issue.
- Record
UBUNTU-CVE-2024-31443- CVSS 3.1
- 5.4 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N - CVSS 3.1
- 5.7 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVopenSUSE-SU-2024:0274-1 No score
Security update for cacti, cacti-spine
This update for cacti, cacti-spine fixes the following issues:
-
cacti 1.2.27:
- CVE-2024-34340: Authentication Bypass when using using older password hashes (boo#1224240)
- CVE-2024-25641: RCE vulnerability when importing packages (boo#1224229)
- CVE-2024-31459: RCE vulnerability when plugins include files (boo#1224238)
- CVE-2024-31460: SQL Injection vulnerability when using tree rules through Automation API (boo#1224239)
- CVE-2024-29894: XSS vulnerability when using JavaScript based messaging API (boo#1224231)
- CVE-2024-31458: SQL Injection vulnerability when using form templates (boo#1224241)
- CVE-2024-31444: XSS vulnerability when reading tree rules with Automation API (boo#1224236)
- CVE-2024-31443: XSS vulnerability when managing data queries (boo#1224235)
- CVE-2024-31445: SQL Injection vulnerability when retrieving graphs using Automation API (boo#1224237)
- CVE-2024-27082: XSS vulnerability when managing trees (boo#1224230)
- Improve PHP 8.3 support
- When importing packages via command line, data source profile could not be selected
- When changing password, returning to previous page does not always work
- When using LDAP authentication the first time, warnings may appear in logs
- When editing/viewing devices, add IPv6 info to hostname tooltip
- Improve speed of polling when Boost is enabled
- Improve support for Half-Hour time zones
- When user session not found, device lists can be incorrectly returned
- On import, legacy templates may generate warnings
- Improve support for alternate locations of Ping
- Improve PHP 8.1 support for Installer
- Fix issues with number formatting
- Improve PHP 8.1 support when SpikeKill is run first time
- Improve PHP 8.1 support for SpikeKill
- When using Chinese to search for graphics, garbled characters appear.
- When importing templates, preview mode will not always load
- When remote poller is installed, MySQL TimeZone DB checks are not performed
- When Remote Poller installation completes, no finish button is shown
- Unauthorized agents should be recorded into logs
- Poller cache may not always update if hostname changes
- When using CMD poller, Failure and Recovery dates may have incorrect values
- Saving a Tree can cause the tree to become unpublished
- Web Basic Authentication does not record user logins
- When using Accent-based languages, translations may not work properly
- Fix automation expressions for device rules
- Improve PHP 8.1 Support during fresh install with boost
- Add a device 'enabled/disabled' indicator next to the graphs
- Notify the admin periodically when a remote data collector goes into heartbeat status
- Add template for Aruba Clearpass
- Add fliter/sort of Device Templates by Graph Templates
-
cacti-spine 1.2.27:
- Restore AES Support
- Record
openSUSE-SU-2024:0274-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:0276-1 No score
Security update for cacti, cacti-spine
This update for cacti, cacti-spine fixes the following issues:
-
cacti 1.2.27:
- CVE-2024-34340: Authentication Bypass when using using older password hashes (boo#1224240)
- CVE-2024-25641: RCE vulnerability when importing packages (boo#1224229)
- CVE-2024-31459: RCE vulnerability when plugins include files (boo#1224238)
- CVE-2024-31460: SQL Injection vulnerability when using tree rules through Automation API (boo#1224239)
- CVE-2024-29894: XSS vulnerability when using JavaScript based messaging API (boo#1224231)
- CVE-2024-31458: SQL Injection vulnerability when using form templates (boo#1224241)
- CVE-2024-31444: XSS vulnerability when reading tree rules with Automation API (boo#1224236)
- CVE-2024-31443: XSS vulnerability when managing data queries (boo#1224235)
- CVE-2024-31445: SQL Injection vulnerability when retrieving graphs using Automation API (boo#1224237)
- CVE-2024-27082: XSS vulnerability when managing trees (boo#1224230)
- Improve PHP 8.3 support
- When importing packages via command line, data source profile could not be selected
- When changing password, returning to previous page does not always work
- When using LDAP authentication the first time, warnings may appear in logs
- When editing/viewing devices, add IPv6 info to hostname tooltip
- Improve speed of polling when Boost is enabled
- Improve support for Half-Hour time zones
- When user session not found, device lists can be incorrectly returned
- On import, legacy templates may generate warnings
- Improve support for alternate locations of Ping
- Improve PHP 8.1 support for Installer
- Fix issues with number formatting
- Improve PHP 8.1 support when SpikeKill is run first time
- Improve PHP 8.1 support for SpikeKill
- When using Chinese to search for graphics, garbled characters appear.
- When importing templates, preview mode will not always load
- When remote poller is installed, MySQL TimeZone DB checks are not performed
- When Remote Poller installation completes, no finish button is shown
- Unauthorized agents should be recorded into logs
- Poller cache may not always update if hostname changes
- When using CMD poller, Failure and Recovery dates may have incorrect values
- Saving a Tree can cause the tree to become unpublished
- Web Basic Authentication does not record user logins
- When using Accent-based languages, translations may not work properly
- Fix automation expressions for device rules
- Improve PHP 8.1 Support during fresh install with boost
- Add a device 'enabled/disabled' indicator next to the graphs
- Notify the admin periodically when a remote data collector goes into heartbeat status
- Add template for Aruba Clearpass
- Add fliter/sort of Device Templates by Graph Templates
-
cacti-spine 1.2.27:
- Restore AES Support
- Record
openSUSE-SU-2024:0276-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:13962-1 No score
cacti-1.2.27-1.1 on GA media
These are all security issues fixed in the cacti-1.2.27-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:13962-1- Updated
- 2026-11-02
OSVUSN-6969-1 No score
cacti vulnerabilities
It was discovered that Cacti did not properly apply checks to the "Package Import" feature. An attacker could possibly use this issue to perform arbitrary code execution. This issue only affected Ubuntu 24.04 LTS, Ubuntu 22.04 LTS, Ubuntu 20.04 LTS and Ubuntu 18.04 LTS. (CVE-2024-25641)
It was discovered that Cacti did not properly sanitize values when using javascript based API. A remote attacker could possibly use this issue to inject arbitrary javascript code resulting into cross-site scripting vulnerability. This issue only affected Ubuntu 24.04 LTS. (CVE-2024-29894)
It was discovered that Cacti did not properly sanitize values when managing data queries. A remote attacker could possibly use this issue to inject arbitrary javascript code resulting into cross-site scripting vulnerability. (CVE-2024-31443)
It was discovered that Cacti did not properly sanitize values when reading tree rules with Automation API. A remote attacker could possibly use this issue to inject arbitrary javascript code resulting into cross-site scripting vulnerability. (CVE-2024-31444)
It was discovered that Cacti did not properly sanitize "get_request_var('filter')" values in the "api_automation.php" file. A remote attacker could possibly use this issue to perform SQL injection attacks. This issue only affected Ubuntu 24.04 LTS, Ubuntu 22.04 LTS, Ubuntu 20.04 LTS and Ubuntu 18.04 LTS. (CVE-2024-31445)
It was discovered that Cacti did not properly sanitize data stored in "form_save()" function in the "graph_template_inputs.php" file. A remote attacker could possibly use this issue to perform SQL injection attacks. (CVE-2024-31458)
It was discovered that Cacti did not properly validate the file urls from the lib/plugin.php file. An attacker could possibly use this issue to perform arbitrary code execution. (CVE-2024-31459)
It was discovered that Cacti did not properly validate the data stored in the "automation_tree_rules.php". A remote attacker could possibly use this issue to perform SQL injection attacks. This issue only affected Ubuntu 24.04 LTS, Ubuntu 22.04 LTS, Ubuntu 20.04 LTS and Ubuntu 18.04 LTS. (CVE-2024-31460)
It was discovered that Cacti did not properly verify the user password. An attacker could possibly use this issue to bypass authentication mechanism. This issue only affected Ubuntu 24.04 LTS, Ubuntu 22.04 LTS, Ubuntu 20.04 LTS and Ubuntu 18.04 LTS. (CVE-2024-34360)
- Record
USN-6969-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
cactiAlpine:v3.19 |
before 1.2.27-r0 | 1.2.27-r0 |
cactiAlpine:v3.20 |
before 1.2.27-r0 | 1.2.27-r0 |
cactiAlpine:v3.21 |
before 1.2.27-r0 | 1.2.27-r0 |
cactiAlpine:v3.22 |
before 1.2.27-r0 | 1.2.27-r0 |
cactiAlpine:v3.23 |
before 1.2.27-r0 | 1.2.27-r0 |
cactiAlpine:v3.24 |
before 1.2.27-r0 | 1.2.27-r0 |
cactiDebian:12 |
before 1.2.24+ds1-1+deb12u3, plus listed versions 1.2.24+ds1-11.2.24+ds1-1+deb12u11.2.24+ds1-1+deb12u2 |
1.2.24+ds1-1+deb12u3 |
cactiDebian:13 |
before 1.2.27+ds1-1 | 1.2.27+ds1-1 |
cactiDebian:14 |
before 1.2.27+ds1-1 | 1.2.27+ds1-1 |
cactiDebian:11 |
before 1.2.16+ds1-2+deb11u4, plus listed versions 1.2.16+ds1-21.2.16+ds1-2+deb11u11.2.16+ds1-2+deb11u21.2.16+ds1-2+deb11u3 |
1.2.16+ds1-2+deb11u4 |
Show 17 moreShow less
| Package | Affected | Fixed |
|---|---|---|
cactiUbuntu:Pro:14.04:LTS |
before 0.8.8b+dfsg-5ubuntu0.2+esm2, plus listed versions 0.8.8b+dfsg-30.8.8b+dfsg-50.8.8b+dfsg-5ubuntu0.10.8.8b+dfsg-5ubuntu0.20.8.8b+dfsg-5ubuntu0.2+esm1 |
0.8.8b+dfsg-5ubuntu0.2+esm2 |
cactiUbuntu:Pro:16.04:LTS |
before 0.8.8f+ds1-4ubuntu4.16.04.2+esm2, plus listed versions 0.8.8f+ds1-20.8.8f+ds1-30.8.8f+ds1-40.8.8f+ds1-4ubuntu10.8.8f+ds1-4ubuntu2 Show 6 moreShow less0.8.8f+ds1-4ubuntu30.8.8f+ds1-4ubuntu40.8.8f+ds1-4ubuntu4.16.040.8.8f+ds1-4ubuntu4.16.04.10.8.8f+ds1-4ubuntu4.16.04.20.8.8f+ds1-4ubuntu4.16.04.2+esm1 |
0.8.8f+ds1-4ubuntu4.16.04.2+esm2 |
cactiUbuntu:Pro:18.04:LTS |
before 1.1.38+ds1-1ubuntu0.1~esm3, plus listed versions 1.1.18+ds1-11.1.27+ds1-21.1.27+ds1-31.1.28+ds1-21.1.35+ds1-11.1.36+ds1-11.1.38+ds1-11.1.38+ds1-1ubuntu0.1~esm1 |
1.1.38+ds1-1ubuntu0.1~esm3 |
cactiUbuntu:20.04:LTS |
before 1.2.10+ds1-1ubuntu1.1, plus listed versions 1.2.4+ds1-2ubuntu31.2.9+ds1-1ubuntu11.2.9+ds1-1ubuntu21.2.10+ds1-1ubuntu1 |
1.2.10+ds1-1ubuntu1.1 |
cactiUbuntu:22.04:LTS |
before 1.2.19+ds1-2ubuntu1.1, plus listed versions 1.2.16+ds1-2ubuntu11.2.19+ds1-2ubuntu1 |
1.2.19+ds1-2ubuntu1.1 |
cactiUbuntu:24.04:LTS |
before 1.2.26+ds1-1ubuntu0.1, plus listed versions 1.2.25+ds1-21.2.26+ds1-1 |
1.2.26+ds1-1ubuntu0.1 |
cactiSUSE:Package Hub 12 |
before 1.2.27-bp155.2.9.1 | 1.2.27-bp155.2.9.1 |
cacti-spineSUSE:Package Hub 12 |
before 1.2.27-bp155.2.9.1 | 1.2.27-bp155.2.9.1 |
cactiSUSE:Package Hub 15 SP5 |
before 1.2.27-bp155.2.9.1 | 1.2.27-bp155.2.9.1 |
cacti-spineSUSE:Package Hub 15 SP5 |
before 1.2.27-bp155.2.9.1 | 1.2.27-bp155.2.9.1 |
cactiopenSUSE:Leap 15.5 |
before 1.2.27-bp155.2.9.1 | 1.2.27-bp155.2.9.1 |
cacti-spineopenSUSE:Leap 15.5 |
before 1.2.27-bp155.2.9.1 | 1.2.27-bp155.2.9.1 |
cactiSUSE:Package Hub 15 SP6 |
before 1.2.27-bp156.2.3.1 | 1.2.27-bp156.2.3.1 |
cacti-spineSUSE:Package Hub 15 SP6 |
before 1.2.27-bp156.2.3.1 | 1.2.27-bp156.2.3.1 |
cactiopenSUSE:Leap 15.6 |
before 1.2.27-bp156.2.3.1 | 1.2.27-bp156.2.3.1 |
cacti-spineopenSUSE:Leap 15.6 |
before 1.2.27-bp156.2.3.1 | 1.2.27-bp156.2.3.1 |
cactiopenSUSE:Tumbleweed |
before 1.2.27-1.1 | 1.2.27-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, aliases, references | OSV | |
| first indexed | CVE List, EUVD, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-31443 is a medium vulnerability (CVSS 5.7) in Cacti, published May 13, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.84%, the 57th percentile. Fixed in cacti 1.2.27-r0.
References
github.com/Cacti/cacti/security/advisories/GHSA-rqc8-78cm-85j3
github.com/Cacti/cacti/commit/f946fa537d19678f938ddbd784a10e3290d275cf
lists.fedoraproject.org/archives/list/[email protected]/message/RBEOAFKRARQHTDIYSL723XAFJ2Q6624X
lists.debian.org/debian-lts-announce/2024/09/msg00027.html
security.alpinelinux.org/vuln/CVE-2024-31443
github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31443.json
Show 35 moreShow less
nvd.nist.gov/vuln/detail/CVE-2024-31443
security-tracker.debian.org/tracker/CVE-2024-31443
ubuntu.com/security/CVE-2024-31443
cve.org/CVERecord?id=CVE-2024-31443
ubuntu.com/security/notices/USN-6969-1
ubuntu.com/security/CVE-2024-25641
ubuntu.com/security/CVE-2024-29894
ubuntu.com/security/CVE-2024-31444
ubuntu.com/security/CVE-2024-31445
ubuntu.com/security/CVE-2024-31458
ubuntu.com/security/CVE-2024-31459
ubuntu.com/security/CVE-2024-31460
ubuntu.com/security/CVE-2024-34340
lists.opensuse.org/archives/list/[email protected]/thread/RAIZKHB2VPK6KRYTE3TU44EJVFAT4WWP
bugzilla.suse.com/1224229
bugzilla.suse.com/1224230
bugzilla.suse.com/1224231
bugzilla.suse.com/1224235
bugzilla.suse.com/1224236
bugzilla.suse.com/1224237
bugzilla.suse.com/1224238
bugzilla.suse.com/1224239
bugzilla.suse.com/1224240
bugzilla.suse.com/1224241
suse.com/security/cve/CVE-2024-25641
suse.com/security/cve/CVE-2024-27082
suse.com/security/cve/CVE-2024-29894
suse.com/security/cve/CVE-2024-31443
suse.com/security/cve/CVE-2024-31444
suse.com/security/cve/CVE-2024-31445
suse.com/security/cve/CVE-2024-31458
suse.com/security/cve/CVE-2024-31459
suse.com/security/cve/CVE-2024-31460
suse.com/security/cve/CVE-2024-34340
lists.opensuse.org/archives/list/[email protected]/thread/JAAOBG657QTBRHKB55GHL2C7553NKG67