CVE-2024-31458

published 13 May 2024 · updated 4 Nov 2025

Cacti SQL Injection vulnerability in lib/html_form_templates.php by reading dirty data stored in database

5.1MediumCVSS 4.6EPSS 13%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 13%. No fixed version is recorded.

Cacti provides an operational monitoring and fault management framework. Prior to version 1.2.27, some of the data stored in `form_save()` function in `graph_template_inputs.php` is not thoroughly checked and is used to concatenate the SQL statement in `draw_nontemplated_fields_graph_item()` function from `lib/html_form_templates.php` , finally resulting in SQL injection. Version 1.2.27 contains a patch for the issue.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
CactiCacti<1.2.27

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Cacti, strongest first

10.0CriticalCISA KEVPublic exploit

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-31458 severity on Zeptric[![CVE-2024-31458](https://zeptric.io/badge/cve/CVE-2024-31458.svg)](https://zeptric.io/cve/CVE-2024-31458)