CVE-2024-31212

MEDIUM
Published Apr 4, 2024 Modified Jan 17, 2025 CWE-20 CWE-89

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.

Is your site exposed to CVE-2024-31212?

Run a free security scan — no signup, results in seconds.

CVSS v3.1 Score

6.7
MEDIUM
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:L

Weakness Type (CWE)

CWE-20 Improper Input Validation
CWE-89 SQL Injection

Affected Products

Vendor Product
instantcms instantcms

References

Frequently Asked Questions

What is 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. It has a CVSS v3.1 base score of 6.7 (MEDIUM).
How severe is CVE-2024-31212? +
CVE-2024-31212 has a CVSS v3.1 score of 6.7 out of 10, rated MEDIUM. This is a medium-severity vulnerability that should be remediated as part of regular maintenance.
What products are affected by CVE-2024-31212? +
CVE-2024-31212 affects products from instantcms, specifically: instantcms. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2024-31212? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2024-31212 — free, no signup required.