{"id":"CVE-2024-31458","aliases":["CVE-2024-31458"],"related":[],"kind":"vulnerability","state":"published","title":"Cacti SQL Injection vulnerability in lib/html_form_templates.php by reading dirty data stored in database","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Cacti proporciona un framework de monitoreo operativo y gestión de fallas. Antes de la versión 1.2.27, algunos de los datos almacenados en la función `form_save()` en `graph_template_inputs.php` no se verifican exhaustivamente y se usan para concatenar la instrucción SQL en la función `draw_nontemplate_fields_graph_item()` de `lib/html_form_templates. php`, lo que finalmente resulta en una inyección SQL. La versión 1.2.27 contiene un parche para el problema.","source":"nvd"}],"published":"2024-05-13T15:07:08.051Z","modified":"2026-06-17T07:28:27.870Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L","score":4.6,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L","score":4.6,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":8,"rating":"HIGH"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"version":"< 1.2.27","status":"affected"}],"vendor":"Cacti","product":"cacti","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"-","fixed":"1.2.27","status":"affected"}],"vendor":"cacti","product":"cacti","cpe":"cpe:2.3:a:cacti:cacti:-:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"1.2.27"}],"vendor":"cacti","product":"cacti","cpe":"cpe:2.3:a:cacti:cacti:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"39"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/Cacti/cacti/security/advisories/GHSA-jrxg-8wh8-943x","tags":["exploit","vendor-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RBEOAFKRARQHTDIYSL723XAFJ2Q6624X/","tags":["product","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00027.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-05-13T17:19:29.133Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-31458","url":"https://www.cve.org/CVERecord?id=CVE-2024-31458","licence":"CVE Terms of Use","modified":"2025-11-04T16:11:59.883Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-31458","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31458","licence":"Public domain","modified":"2026-06-17T07:28:27.870Z"}],"updatedAt":"2026-11-25T22:58:40.138Z","epss":{"score":0.12602,"percentile":0.96337,"date":"2026-12-01T12:00:22.000Z"}}