CVE-2024-31212

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:instantcms:instantcms:2.16.2:*:*:*:*:*:*:*

History

17 Jan 2025, 14:58

Type Values Removed Values Added
First Time Instantcms instantcms
Instantcms
CPE cpe:2.3:a:instantcms:instantcms:2.16.2:*:*:*:*:*:*:*
References () https://github.com/instantsoft/icms2/blob/4691a1524780e74107f6009b48d91e17a81b0fa1/system/controllers/admin/actions/index_chart_data.php#L190 - () https://github.com/instantsoft/icms2/blob/4691a1524780e74107f6009b48d91e17a81b0fa1/system/controllers/admin/actions/index_chart_data.php#L190 - Product
References () https://github.com/instantsoft/icms2/blob/4691a1524780e74107f6009b48d91e17a81b0fa1/system/core/model.php#L744 - () https://github.com/instantsoft/icms2/blob/4691a1524780e74107f6009b48d91e17a81b0fa1/system/core/model.php#L744 - Product
References () https://github.com/instantsoft/icms2/security/advisories/GHSA-qx95-w566-73fw - () https://github.com/instantsoft/icms2/security/advisories/GHSA-qx95-w566-73fw - Exploit, Vendor Advisory
References () https://user-images.githubusercontent.com/109034767/300806111-a33d9548-d99f-4034-bef3-fbd7fa62c37f.png - () https://user-images.githubusercontent.com/109034767/300806111-a33d9548-d99f-4034-bef3-fbd7fa62c37f.png - Permissions Required

Information

Published : 2024-04-04 23:15

Updated : 2025-01-17 14:58


NVD link : CVE-2024-31212

Mitre link : CVE-2024-31212

CVE.ORG link : CVE-2024-31212


JSON object : View

Products Affected

instantcms

  • instantcms
CWE
CWE-20

Improper Input Validation

CWE-89

Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')