Skip to main content

Mindsql CVE-2026-4507

| EUVDEUVD-2026-13833 LOW
SQL Injection (CWE-89)
2026-03-20 VulDB GHSA-w7qc-r6gf-85jh
2.1
CVSS 4.0 · NVD
View

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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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)
v1 Mar 20, 2026 - 22:16 CVSS 6.3

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

MindSQL 0.2.0
MindSQL 0.2.1

Affected Packages

euvd mindsql no fix

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

NVD PRIMARY 2.1 LOW
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

5
Severity Changed
Apr 29, 2026 - 01:11 NVD
MEDIUM LOW
CVSS changed
Apr 29, 2026 - 01:11 NVD
5.3 (MEDIUM) 2.1 (LOW)
CVSS changed
Apr 22, 2026 - 21:37 NVD
6.3 (MEDIUM) 5.3 (MEDIUM)
PoC Detected
Mar 23, 2026 - 14:32 vuln.today
Public exploit code
CVE Published
Mar 20, 2026 - 22:02 nvd
MEDIUM 6.3

DescriptionCVE.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

Why It Matters

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.

Business Impact: Low
Compensating Controls

Apply vendor patch. If patching is delayed: deploy WAF rules, restrict network access, enable logging.

Threat Intelligence Overview

EPSS Score
0.0%
Top 93% exploitable
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
Low
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy