MindsDB — Handler Path Traversal to Remote Code Execution (CVE-2026-27483)
by Lohitya Pushkar (thewhiteh4t); vulnerability found by XlabAITeam · 2026-07-05
- Severity
- Critical
- CVE
- CVE-2026-27483
- Category
- web
- Affected product
- MindsDB (version observed: 25.9.1.0)
- Affected versions
- Per vendor advisory GHSA-4894-xqv6-vrfq
- Disclosed
- 2026-07-05
- Patch status
- unpatched
Archive entry
intelseclab/poc-archiveMetadata
| Field | Value |
|---|---|
| Date Added | 2026-07-05 |
| Last Updated | 2026-03 |
| Author / Researcher | Lohitya Pushkar (thewhiteh4t); vulnerability found by XlabAITeam |
| CVE / Advisory | CVE-2026-27483 |
| Category | web |
| Severity | Critical |
| CVSS Score | Not specified in source |
| Status | Weaponized |
| Tags | mindsdb, path-traversal, rce, reverse-shell, unauthenticated, pip-overwrite, python |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | MindsDB (version observed: 25.9.1.0) |
| Versions Affected | Per vendor advisory GHSA-4894-xqv6-vrfq |
| Language / Platform | Python (MindsDB server), Python 3 exploit client |
| Authentication Required | No (default install has no auth); PoC also supports authenticated mode |
| Network Access Required | Yes |
Summary
MindsDB exposes a /api/handlers/ endpoint that lists available integration handlers, some of which are registered but not actually installed. By selecting one of these available-but-uninstalled handler names, an attacker can abuse a path traversal flaw in the handler-loading/upload logic to write an arbitrary file outside the intended handler directory. The PoC exploits this to overwrite /venv/lib/python3.10/site-packages/pip/__init__.py inside the MindsDB server’s virtual environment with a Python reverse-shell payload, then triggers execution of that file to obtain a shell as the MindsDB process user. Because MindsDB does not require authentication by default, this is exploitable pre-auth in a typical deployment, though the PoC also supports authenticated targets.
Vulnerability Details
Root Cause
Insufficient path/filename validation in MindsDB’s handler installation/upload mechanism allows an attacker to control the destination path of an uploaded file, enabling writes outside the intended handler directory (path traversal, CWE-22) into arbitrary locations such as the Python virtual environment’s package files.
Attack Vector
- Attacker queries
GET /api/handlers/to enumerate handler names that are listed but not currently installed. - Attacker (optionally authenticating with
-u/-p) uploads a malicious payload referencing one of these handler names, using path traversal sequences to redirect the write to/venv/lib/python3.10/site-packages/pip/__init__.py. - The malicious
pip/__init__.pycontains a Python reverse-shell payload. - Attacker triggers execution of the overwritten file (via an action that imports/invokes
pip), causing the MindsDB server process to connect back to the attacker’s listener. - Attacker receives an interactive reverse shell on the configured listener host/port.
Impact
Full unauthenticated remote code execution on the MindsDB host, providing the attacker a reverse shell with the privileges of the MindsDB service process.
Environment / Lab Setup
Target: MindsDB server (observed version 25.9.1.0), reachable at e.g. http://127.0.0.1:47334
Attacker: Python 3 with `pip3 install requests packaging`, a listener (e.g. netcat) on the chosen LHOST/LPORT
Proof of Concept
PoC Script
See
cve-2026-27483.py(and reference configcve-2026-27483.yaml) in this folder.
| |
The script checks the target’s MindsDB version and auth status, optionally logs in with the supplied credentials, uploads the crafted payload that path-traverses into pip/__init__.py inside the server’s virtualenv, and then triggers execution of the payload to open a reverse shell back to the attacker’s listener on -lh/-lp.
Detection & Indicators of Compromise
Signs of compromise:
- Modified
pip/__init__.py(or other site-packages files) inside the MindsDB virtualenv - Unexpected outbound TCP connections originating from the MindsDB server process
- Handler install/upload requests in access logs referencing handler names not present in the installed handler list
Remediation
| Action | Detail |
|---|---|
| Primary fix | Apply the vendor patch referenced in GHSA-4894-xqv6-vrfq / upgrade MindsDB to a fixed release; validate and normalize all handler upload paths server-side |
| Interim mitigation | Enable authentication on MindsDB, restrict network access to the MindsDB API to trusted hosts, and monitor/lock down write access to the server’s virtualenv site-packages |
References
Notes
Mirrored from https://github.com/thewhiteh4t/cve-2026-27483 on 2026-07-05.
| |