CVE-2026-4506 Mindinventory MindSQL mindsql_core.py ask_db code injection
Remote attackers can execute arbitrary code via the ask_db function in MindSQL, requiring immediate attention due to public exploits and lack of vendor response.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-4506?
CVE-2026-4506 is a medium-severity code injection vulnerability in Mindinventory MindSQL, published on 20 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Which versions are affected by CVE-2026-4506?
3 open source packages ship an affected version, including mindsql.
| Package | Affected | Fixed in |
|---|---|---|
mindsql PyPI | All versions to 0.2.1 | None |
mindsql PyPI | All versions to 0.2.1 | None |
mindsql PyPI | All versions to 0.2.1 | None |
How do I fix CVE-2026-4506?
No fix has been published for CVE-2026-4506 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-4506 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-4506 exists.
Sources
Also known as GHSA-m6m4-34cj-4hh7, PYSEC-2026-2649.