Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | The risk assessment presents a mixed signal profile. The CVSS:3.1 score of 6.3 reflects a network-accessible vulnerability (AV:N) with low attack complexity (AC:L) requiring user privileges (PR:L), resulting in limited impact to confidentiality, integrity, and availability (C:L/I:L/A:L). However, critical exploitation signals elevate practical risk: the Exploit Maturity rating (E:P) indicates proof-of-concept code is publicly available, the References Completeness (RC:R) shows unconfirmed but reported status, and vendor non-responsiveness eliminates the possibility of coordinated disclosure benefits. The CVSS vector combination of PR:L (requires authentication) significantly reduces immediate threat surface compared to unauthenticated SQL injection. Organizations should prioritize this based on: (1) whether internal or public-facing applications use MindSQL, (2) whether authenticated users are trusted or semi-trusted (e.g., multi-tenant scenarios), and (3) database sensitivity and network segmentation. This is not a critical zero-day requiring immediate emergency response, but it warrants prompt patching and should be treated as high-priority for systems in sensitive environments. |
| Exploit ScenarioDerived | An authenticated application user or internal service account could craft specially formatted input to the ask_db function that bypasses the natural language-to-SQL conversion layer and injects arbitrary SQL commands. For example, a user querying a customer database through a natural language interface could inject SQL that extracts sensitive data from other tables, modifies records, or exfiltrates credentials from the database. The attack requires prior authentication (PR:L per CVSS), limiting the threat to scenarios where user accounts are available, but once inside the application boundary, the public proof-of-concept code on GitHub allows straightforward exploitation without requiring sophisticated SQL injection knowledge. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 20, 2026
SQL injection in Mindinventory MindSQL versions up to 0.2.1 allows authenticated remote attackers to execute arbitrary SQL commands through the ask_db function. Public exploit code exists for this vulnerability, and the vendor has not provided a patch or responded to disclosure attempts. Attackers with valid credentials can manipulate database queries to access, modify, or delete sensitive data.
Earlier versions of this analysis (1)
A SQL injection vulnerability exists in Mindinventory MindSQL up to version 0.2.1 within the ask_db function of mindsql/core/mindsql_core.py, allowing authenticated attackers to manipulate database queries and execute arbitrary SQL commands remotely. The vulnerability has been publicly disclosed with proof-of-concept code available on GitHub, and the vendor has not responded to early disclosure attempts. While the CVSS score of 6.3 indicates medium severity with limited impact scope, the presence of a public exploit and confirmed exploitability make this a practical security concern for organizations using affected versions.
RemediationAI
Upgrade MindSQL to a version released after 0.2.1 that contains the SQL injection fix; check the official Mindinventory MindSQL GitHub repository for the latest patched release. If upgrading is not immediately possible, implement the following compensating controls: enforce strict input validation and parameterized queries at the application layer above MindSQL, restrict database user permissions to the minimum required (apply principle of least privilege for the service account), isolate MindSQL instances to trusted network segments only and disable remote access where feasible, implement database query auditing and alerting for suspicious SQL patterns, and consider running MindSQL in a sandboxed environment with restricted database permissions. Monitor https://vuldb.com/?submit.773899 and the vendor's official channels for patch release announcements.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
MindSQL is a text-to-SQL conversion library developed by Mindinventory that translates natural language queries into SQL statements. The vulnerability resides in the ask_db function, which fails to properly sanitize user-supplied input before incorporating it into SQL queries, violating the principles defined in CWE-89 (SQL Injection). This is a classic input validation flaw where user-controlled data reaches a SQL query constructor without adequate parameterization or escaping. The affected component (cpe:2.3:a:mindinventory:mindsql) processes user input through a language model interface that generates SQL, creating a critical trust boundary where the generated SQL is not validated before execution. The root cause is insufficient input validation at the boundary between user input and database query construction.
Know when Mindsql gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
5DescriptionCVE.org
A vulnerability was determined in Mindinventory MindSQL up to 0.2.1. The affected element is the function ask_db of the file mindsql/core/mindsql_core.py. Executing a manipulation can lead to sql injection. The attack can be launched remotely. The exploit has been publicly disclosed and may be utilized. The vendor was contacted early about this disclosure but did not respond in any way.
Executive ViewAI
Organizations using Mindinventory MindSQL should be aware of moderate risk from CVE-2026-4507, a SQL injection vulnerability rated CVSS 6.3. Exploitation could allow attackers to execute code or inject malicious input. Proof-of-concept code is publicly available. Organizations should apply vendor updates when available and monitor for exploitation.
Apply vendor patch. If patching is delayed: deploy WAF rules, restrict network access, enable logging.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
EUVD-2026-13833
GHSA-w7qc-r6gf-85jh
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB