MindSQL is vulnerable to Code Injection through its ask_db function
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | mindsql | <= 0.2.1 | no fix |
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-4506
- https://github.com/Ka7arotto/cve/blob/main/MindSQL-RCE.md
- https://github.com/Mindinventory/MindSQL
- https://vuldb.com/?ctiid.352072
- https://vuldb.com/?id.352072
- https://vuldb.com/?submit.773898
- https://pypi.org/project/mindsql
- https://github.com/advisories/GHSA-m6m4-34cj-4hh7
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L- Weakness (CWE)
CWE-74- Platform
- Python (PyPI)
- Package
mindsql- Disclosed
- 21.03.2026
- Updated
- 11.10.2026 14:18
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2026-2649 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-m6m4-34cj-4hh7 - CC BY 4.0
Vulnerability history: mindsql
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.