---
id: CVE-2026-4506
aliases:
  - GHSA-m6m4-34cj-4hh7
  - PYSEC-2026-2649
title: MindSQL is vulnerable to Code Injection through its ask_db function
summary: MindSQL is vulnerable to Code Injection through its ask_db function
severity: medium
cvss: 6.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L'
vendor: mindsql
product: mindsql
ecosystem: pip
affected:
  - mindsql <= 0.2.1
published: '2026-03-21'
updated: '2026-07-13'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-m6m4-34cj-4hh7'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-4506'
  - url: 'https://github.com/Ka7arotto/cve/blob/main/MindSQL-RCE.md'
  - url: 'https://github.com/Mindinventory/MindSQL'
  - url: 'https://vuldb.com/?ctiid.352072'
  - url: 'https://vuldb.com/?id.352072'
  - url: 'https://vuldb.com/?submit.773898'
tags:
  - osv
  - pip
epss: 0.00393
epssPercentile: 0.30613
ingestedAt: '2026-07-13T18:58:00.400Z'
---

## Overview

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 packages

- `mindsql <= 0.2.1`

## Remediation

Refer to the advisory for the patched release.
