### [CVE-2024-31445](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-31445) ![](https://img.shields.io/static/v1?label=Product&message=cacti&color=blue) ![](https://img.shields.io/static/v1?label=Version&message=%3D%20%3C%201.2.27%20&color=brighgreen) ![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-89%3A%20Improper%20Neutralization%20of%20Special%20Elements%20used%20in%20an%20SQL%20Command%20('SQL%20Injection')&color=brighgreen) ### Description 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. ### POC #### Reference - https://github.com/Cacti/cacti/security/advisories/GHSA-vjph-r677-6pcc - https://github.com/Cacti/cacti/security/advisories/GHSA-vjph-r677-6pcc #### Github No PoCs found on GitHub currently.