{"id":"CVE-2024-31445","summary":"SQL Injection vulnerability in automation_get_new_graphs_sql","details":"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.","aliases":["GHSA-vjph-r677-6pcc"],"modified":"2026-04-02T10:20:44.421759Z","published":"2024-05-13T15:05:56.662Z","related":["openSUSE-SU-2024:0274-1","openSUSE-SU-2024:0276-1","openSUSE-SU-2024:13962-1"],"database_specific":{"cwe_ids":["CWE-89"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31445.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/Cacti/cacti/blob/501712998589763d411a68d35e3cda98fd9cfd18/lib/api_automation.php#L717"},{"type":"WEB","url":"https://github.com/Cacti/cacti/blob/501712998589763d411a68d35e3cda98fd9cfd18/lib/api_automation.php#L856"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00027.html"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RBEOAFKRARQHTDIYSL723XAFJ2Q6624X/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31445.json"},{"type":"ADVISORY","url":"https://github.com/Cacti/cacti/security/advisories/GHSA-vjph-r677-6pcc"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31445"},{"type":"FIX","url":"https://github.com/Cacti/cacti/commit/fd93c6e47651958b77c3bbe6a01fff695f81e886"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/cacti/cacti","events":[{"introduced":"0"},{"fixed":"b577c294214b7e65a7273031ef8f0045d2a0c5af"}]}],"versions":["releaes/1.2.19","release/1.0.0","release/1.0.1","release/1.0.2","release/1.0.3","release/1.0.4","release/1.0.5","release/1.0.6","release/1.1.0","release/1.1.1","release/1.1.10","release/1.1.11","release/1.1.12","release/1.1.13","release/1.1.14","release/1.1.15","release/1.1.16","release/1.1.17","release/1.1.18","release/1.1.19","release/1.1.2","release/1.1.20","release/1.1.21","release/1.1.22","release/1.1.23","release/1.1.24","release/1.1.25","release/1.1.26","release/1.1.27","release/1.1.28","release/1.1.29","release/1.1.3","release/1.1.30","release/1.1.31","release/1.1.32","release/1.1.33","release/1.1.34","release/1.1.35","release/1.1.36","release/1.1.37","release/1.1.38","release/1.1.4","release/1.1.5","release/1.1.6","release/1.1.7","release/1.1.8","release/1.1.9","release/1.2.0","release/1.2.0-beta1","release/1.2.0-beta2","release/1.2.0-beta3","release/1.2.0-beta4","release/1.2.1","release/1.2.10","release/1.2.11","release/1.2.12","release/1.2.13","release/1.2.14","release/1.2.15","release/1.2.16","release/1.2.17","release/1.2.18","release/1.2.19","release/1.2.2","release/1.2.20","release/1.2.21","release/1.2.22","release/1.2.23","release/1.2.24","release/1.2.25","release/1.2.26","release/1.2.3","release/1.2.4","release/1.2.5","release/1.2.6","release/1.2.7","release/1.2.8","release/1.2.9"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-31445.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}