id: PYSEC-2026-2649 published: "2026-07-13T14:36:44.267111Z" modified: "2026-07-13T16:04:52.114076Z" aliases: - CVE-2026-4506 - GHSA-m6m4-34cj-4hh7 summary: MindSQL is vulnerable to Code Injection through its ask_db function details: 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: - package: name: mindsql ecosystem: PyPI purl: pkg:pypi/mindsql ranges: - type: ECOSYSTEM events: - introduced: "0" - last_affected: 0.2.1 versions: - 0.1.1 - 0.1.2 - 0.1.3 - 0.2.0 - 0.2.1 references: - type: ADVISORY url: https://nvd.nist.gov/vuln/detail/CVE-2026-4506 - type: WEB url: https://github.com/Ka7arotto/cve/blob/main/MindSQL-RCE.md - type: PACKAGE url: https://github.com/Mindinventory/MindSQL - type: WEB url: https://vuldb.com/?ctiid.352072 - type: WEB url: https://vuldb.com/?id.352072 - type: WEB url: https://vuldb.com/?submit.773898 - type: PACKAGE url: https://pypi.org/project/mindsql - type: ADVISORY url: https://github.com/advisories/GHSA-m6m4-34cj-4hh7 severity: - type: CVSS_V3 score: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L - type: CVSS_V4 score: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P