# CVE-2024-31212: SQL injection in index_chart_data action

- Severity: Medium 6.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.85%, higher than 59% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-04-04T23:02:38.775Z
- Modified: 2026-06-17T07:27:59.550Z
- Weaknesses: CWE-20, CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- instantsoft icms2: = 2.16.2
- instantcms icms2: 2.16.2
- instantcms instantcms: 2.16.2

## Every score

- GitHub_M: CVSS:3.1 6.7 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:L`
- NVD: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/instantsoft/icms2/security/advisories/GHSA-qx95-w566-73fw> (exploit, vendor-advisory)
- <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> (product)
- <https://user-images.githubusercontent.com/109034767/300806111-a33d9548-d99f-4034-bef3-fbd7fa62c37f.png> (permissions-required)

## Sources

- CVE List: [CVE-2024-31212](https://www.cve.org/CVERecord?id=CVE-2024-31212), CVE Terms of Use, modified 2024-08-02
- NVD: [CVE-2024-31212](https://nvd.nist.gov/vuln/detail/CVE-2024-31212), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-31212 · Whole record: https://cve.day/CVE-2024-31212.json · Rebuilt by cve.day 2026-11-25T22:58:38.789Z
