{"id":"CVE-2024-31212","published":"2024-04-04T23:02:38Z","modified":"2024-08-02T01:46:04Z","title":"SQL injection in index_chart_data action","vendor":"instantsoft","product":"icms2","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.7,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00986,"percentile":0.61219,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"},{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/instantsoft/icms2/security/advisories/GHSA-qx95-w566-73fw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/instantsoft/icms2/blob/4691a1524780e74107f6009b48d91e17a81b0fa1/system/controllers/admin/actions/index_chart_data.php#L190","tags":["x_refsource_MISC"]},{"url":"https://github.com/instantsoft/icms2/blob/4691a1524780e74107f6009b48d91e17a81b0fa1/system/core/model.php#L744","tags":["x_refsource_MISC"]},{"url":"https://user-images.githubusercontent.com/109034767/300806111-a33d9548-d99f-4034-bef3-fbd7fa62c37f.png","tags":["x_refsource_MISC"]}],"priority":{"score":16.9,"factors":[{"name":"EPSS percentile","points":12.24},{"name":"CVSS severity","points":4.69}]},"vendorSlug":"instantsoft","affectedVersions":[{"vendor":"instantsoft","product":"icms2","versions":["= 2.16.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2024-07-16T00:00:40.930646Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-29112","exploited":false,"provenance":"source"}}