{"id":"CVE-2024-31445","published":"2024-05-13T15:05:56Z","modified":"2025-12-16T18:13:17Z","title":"SQL Injection vulnerability in automation_get_new_graphs_sql","vendor":"Cacti","product":"cacti","tier":"tail","description":{"text":"Cacti provides an operational monitoring and fault management framework. Prior to version 1.2.27, a SQL injection vulnerability in `automation_get_new_graphs_sql` function of `api_automation.php` allows authenticated users to exploit these SQL injection vulnerabilities to perform privilege escalation and remote code execution. In `api_automation.php` line 856, the `get_request_var('filter')` is being concatenated into the SQL statement without any sanitization. In `api_automation.php` line 717, The filter of `'filter'` is `FILTER_DEFAULT`, which means there is no filter for it. Version 1.2.27 contains a patch for the issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.26154,"percentile":0.98037,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/Cacti/cacti/security/advisories/GHSA-vjph-r677-6pcc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Cacti/cacti/commit/fd93c6e47651958b77c3bbe6a01fff695f81e886","tags":["x_refsource_MISC"]},{"url":"https://github.com/Cacti/cacti/blob/501712998589763d411a68d35e3cda98fd9cfd18/lib/api_automation.php#L717","tags":["x_refsource_MISC"]},{"url":"https://github.com/Cacti/cacti/blob/501712998589763d411a68d35e3cda98fd9cfd18/lib/api_automation.php#L856","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RBEOAFKRARQHTDIYSL723XAFJ2Q6624X/","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00027.html","tags":[]}],"priority":{"score":25.8,"factors":[{"name":"EPSS percentile","points":19.61},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"cacti","affectedVersions":[{"vendor":"Cacti","product":"cacti","versions":["< 1.2.27"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2024-05-17T04:00:40.261346Z","from":"CISA ADP","provenance":"source"},"summary":{"text":"A SQL injection flaw in the automation_get_new_graphs_sql function of api_automation.php in Cacti (cacti product) lets the filter request parameter be concatenated into a SQL statement without sanitization. An attacker with network access and low-privileged authenticated credentials, without any user interaction, can inject SQL to escalate privileges and achieve remote code execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T05:39:41Z"},"euvd":{"id":"EUVD-2024-29334","exploited":false,"provenance":"source"}}