CVE-2026-4506 Details
Description
A vulnerability was found in Mindinventory MindSQL up to 0.2.1. Impacted is the function ask_db of the file mindsql/core/mindsql_core.py. Performing a manipulation results in code injection. The attack can be initiated remotely. The exploit has been made public and could be used. The vendor was contacted early about this disclosure but did not respond in any way.
A prompt injection vulnerability has been identified in Mindinventory MindSQL versions through 0.2.1. This vulnerability resides in the `ask_db` function within the file `mindsql/core/mindsql_core.py`. The issue arises when untrusted user input is sent to a large language model (LLM) to generate SQL and potentially Python visualization code. If the application executes LLM-generated Python—such as for creating Plotly charts—an attacker could manipulate the prompt to produce harmful Python code, which might be executed on the host, leading to remote code execution.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Mar 20, 2026CISA-ADP
Assessed Mar 23, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/Ka7arotto/cve/blob/main/MindSQL-RCE.md | [email protected] | ExploitTechnical Description |
| https://vuldb.com/?ctiid.352072 | [email protected] | Content Wall |
| https://vuldb.com/?id.352072 | [email protected] | AdvisoryExploitPartial Content |
| https://vuldb.com/?submit.773898 | [email protected] | Technical Description |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-74 | Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') | [email protected] |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Mindinventory MindSQL | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Mar 20, 2026 | New CVE Received | [email protected] |
Volerion