SQL injection in index_chart_data action
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- None
- Attack complexity
- Low
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-89.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| instantsoft | icms2 | = 2.16.2 | — | No fix listed | CNA |
- icms2 Vendorinstantsoft Affected = 2.16.2 Fixed in — No fix listed CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:instantcms:instantcms:2.16.2:*:*:*:*:*:*:* | 2.16.2 | Vulnerable | InstantCMS |
- cpe:2.3:a:instantcms:instantcms:2.16.2:*:*:*:*:*:*:* Versions 2.16.2 Vulnerable ·InstantCMS
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2024-31212
References
Other 3
- https://github.com/instantsoft/icms2/blob/4691a1524780e74107f6009b48d91e17a81b0fa1/system/controllers/admin/actions/index_chart_data.php#L190
- https://github.com/instantsoft/icms2/blob/4691a1524780e74107f6009b48d91e17a81b0fa1/system/core/model.php#L744
- https://user-images.githubusercontent.com/109034767/300806111-a33d9548-d99f-4034-bef3-fbd7fa62c37f.png
More instantsoft vulnerabilities
- TI-2023-03877 SQL Injection in instantsoft/icms2 CVSS 3.1CRITICAL 9.1
- TI-2023-04538 SQL Injection in instantsoft/icms2 CVSS 3.1HIGH 7.2
- TI-2025-36697 InstantCMS vulnerable to Server-Side Request Forgery via package installer CVSS 3.1HIGH 7.2
- TI-2023-04291 Cross-site Scripting (XSS) - Reflected in instantsoft/icms2 CVSS 3.1MEDIUM 6.1
- TI-2026-39443 InstantCMS has Remote Code Execution in package installer CVSS 3.1MEDIUM 5.5
- TI-2024-33783 InstantCMS has a Cross Site Scripting Vulnerability CVSS 3.1MEDIUM 5.4
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences