High severity · published Apr 4, 2024
CVE-2024-31212
SQL injection in index_chart_data action
7.2
CVSS
0.9%
EPSS
No
On KEV
Description
InstantCMS is a free and open source content management system. A SQL injection vulnerability affects instantcms v2.16.2 in which an attacker with administrative privileges can cause the application to execute unauthorized SQL code. The vulnerability exists in index_chart_data action, which receives an input from user and passes it unsanitized to the core model `filterFunc` function that further embeds this data in an SQL statement. This allows attackers to inject unwanted SQL code into the statement. The `period` should be escaped before inserting it in the query. As of time of publication, a patched version is not available.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
High
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.9% · higher than 58% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
IC
icms2 · instantsoft
= 2.16.2 · source: vendor, CISA
IN
Instantcms · Instantcms
2.16.2 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-31212
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-31212
Product
https://github.com/instantsoft/icms2/blob/4691a1524780e74107f6009b48d91e17a81b0fa1/system/controllers/admin/actions/index_chart_data.php#L190
Product
https://github.com/instantsoft/icms2/blob/4691a1524780e74107f6009b48d91e17a81b0fa1/system/core/model.php#L744
Exploit
https://github.com/instantsoft/icms2/security/advisories/GHSA-qx95-w566-73fw
Permissions Required
https://user-images.githubusercontent.com/109034767/300806111-a33d9548-d99f-4034-bef3-fbd7fa62c37f.png
More from icms2
7.2
CVE-2025-59055
InstantCMS vulnerable to Server-Side Request Forgery via package installer
7.1
CVE-2026-28281
InstantCMS has Multiple CSRF Vulnerabilities
5.5
CVE-2026-54611
InstantCMS has Remote Code Execution in package installer
5.4
CVE-2024-50348
InstantCMS has a Cross Site Scripting Vulnerability
5.4
CVE-2024-31213
InstantCMS Open Redirect vulnerability
