Unknown · Instantcms · CVE-2024-31212
**Name of the Vulnerable Software and Affected Versions**
InstantCMS version 2.16.2
**Description**
A SQL injection issue affects the application, allowing an attacker with administrative privileges to execute unauthorized SQL code. The vulnerability exists in the `index chart data` action, which receives user input and passes it unsanitized to the core model `filterFunc` function, embedding this data in an SQL statement. This enables attackers to inject unwanted SQL code into the statement. The `period` variable should be escaped before inserting it into the query.
**Recommendations**
As a temporary workaround, consider disabling the `index chart data` action until a patch is available. Restrict access to the `filterFunc` function to minimize the risk of exploitation. Avoid using the `period` variable in the affected SQL statement until the issue is resolved. At the moment, there is no information about a newer version that contains a fix for this vulnerability.