{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-31212 exists.","fix":"No fix has been published for CVE-2024-31212 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-31212 is a medium-severity SQL injection vulnerability in instantsoft icms2, published on 4 Apr 2024. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-31212 and fix it if it is affected.\n\nWhat it is: CVE-2024-31212 is a medium-severity SQL injection vulnerability in instantsoft icms2, published on 4 Apr 2024. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-31212 exists.\n\nAffected product: instantsoft icms2. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-31212/ (Markdown: https://insights.sbomify.com/CVE-2024-31212/index.md)","id":"CVE-2024-31212","markdown":"https://insights.sbomify.com/CVE-2024-31212/index.md","name":"CVE-2024-31212","record":{"aliases":["GHSA-qx95-w566-73fw"],"analysis":{"component_type":"web_application","fix_type":"no_fix_stated","impacts":["code_execution","data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"InstantCMS","requires_auth":"high_privilege","summary":"Administrative users can execute unauthorized SQL code via the index_chart_data action in InstantCMS, potentially compromising database integrity and confidentiality.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"instantcms","vendor":"instantcms"}],"cvss":{"score":6.7,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:L","version":"3.1"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"},{"id":"CWE-20","name":"Improper Input Validation"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"SQL injection in index_chart_data action","id":"CVE-2024-31212","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"sql_injection","year":"2024"},"n_packages":0,"n_references":4,"next":{"headline":"InstantCMS Open Redirect vulnerability","id":"CVE-2024-31213"},"packages":[],"prev":{"headline":"Remote Code Execution in `WP_HTML_Token`","id":"CVE-2024-31211"},"products":["icms2"],"published":"2024-04-04","related":[{"cvss_score":9.8,"headline":"SQL Injection in instantsoft/icms2","id":"CVE-2023-4188","kev_date_added":null,"published":"2023-08-05"},{"cvss_score":9.3,"headline":"InstantCMS \u003c= 1.6 Remote PHP Code Execution","id":"CVE-2013-10051","kev_date_added":null,"published":"2025-08-01"},{"cvss_score":8.8,"headline":"External Control of System or Configuration Setting in instantsoft/icms2","id":"CVE-2023-4704","kev_date_added":null,"published":"2023-09-01"},{"cvss_score":7.1,"headline":"InstantCMS has Multiple CSRF Vulnerabilities","id":"CVE-2026-28281","kev_date_added":null,"published":"2026-03-09"},{"cvss_score":6.8,"headline":"Cross-site Scripting (XSS) - Stored in instantsoft/icms2","id":"CVE-2023-4652","kev_date_added":null,"published":"2023-08-31"},{"cvss_score":6.4,"headline":"Server-Side Request Forgery (SSRF) in instantsoft/icms2","id":"CVE-2023-4651","kev_date_added":null,"published":"2023-08-31"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["instantsoft"]},"summary":"Administrative users can execute unauthorized SQL code via the index_chart_data action in InstantCMS, potentially compromising database integrity and confidentiality.","url":"https://insights.sbomify.com/CVE-2024-31212/"}