MindsDB
MindsDB has improper sanitation of filepath that leads to information disclosure and DOS
MindsDB is a platform for building artificial intelligence from enterprise data. Prior to version 25.11.1, an unauthenticated path traversal in the file upload API lets any caller read arbitrary files from the server filesystem and move them into MindsDB’s storage, exposing sensitive data. The PUT handler in file.py directly joins user-controlled data into a filesystem path when the request body is JSON and source_type is not "url". Only multipart uploads and URL-sourced uploads receive sanitization; JSON uploads lack any call to clear_filename or equivalent checks. This vulnerability is fixed in 25.11.1.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 25.11.1
Fixed in 25.11.1
Mitigation
Upgrade mindsdb to 25.11.1 or later.
References
- Vendor advisory github.com/mindsdb/mindsdb/security/advisories…
Timeline
Days relative to CVE publicationFirst public PoC 1.5 days after publication; not in CISA KEV. First PoC: ExploreUnknowed/CVE-2025-68472 (created 14 Jan 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| ExploreUnknowed/CVE-2025-68472 | 14 Jan 2026 +1.5 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoPOST /api/sql/query
- Body markers
"query":"SELECT * FROM files.leak_rel"inapplication/json- Seen in
- 1 repo: ExploreUnknowed/CVE-2025-68472
- Evidence
- ExploreUnknowed/CVE-2025-68472/CVE-2025-68472.py:9
PUT /api/files/leak_rel
- Body markers
"file":"../../../../../etc/passwd"inapplication/json- Seen in
- 1 repo: ExploreUnknowed/CVE-2025-68472
- Evidence
- ExploreUnknowed/CVE-2025-68472/CVE-2025-68472.py:6
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/sql/query(?:[?#].*)?$
(?i)^/api/files/leak_rel(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2025-68472 mindsdb mindsdb exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/sql/query"; http.request_body; content:"|22|query|22|:|22|SELECT * FROM files.leak_rel|22|"; reference:url,poc.griffinguard.io/cve/CVE-2025-68472; classtype:web-application-attack; sid:9410446; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2025-68472 mindsdb mindsdb exploit attempt"; flow:established,to_server; http.method; content:"PUT"; http.uri; content:"/api/files/leak_rel"; http.request_body; content:"|22|file|22|:|22|../../../../../etc/passwd|22|"; reference:url,poc.griffinguard.io/cve/CVE-2025-68472; classtype:web-application-attack; sid:9752749; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: mindsdb mindsdb exploit attempt (CVE-2025-68472)
id: gg-pocmon-cve-2025-68472-9410446
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-68472. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-68472
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/sql/query'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.68472
title: mindsdb mindsdb exploit attempt (CVE-2025-68472)
id: gg-pocmon-cve-2025-68472-9752749
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-68472. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-68472
logsource:
category: webserver
detection:
selection:
cs-method: PUT
cs-uri-stem|contains|all:
- '/api/files/leak_rel'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2025.68472