MindsDB is a SQL Server for artificial intelligence. Prior to version 23.11.4.1, the put method in mindsdb/mindsdb/api/http/namespaces/file.py does not validate the user-controlled name value, which is used in a temporary file name, which is afterwards opened for writing on lines 122-125, which leads to path injection. Later in the method, the temporary directory is deleted on line 151, but since we can write outside of the directory using the path injection vulnerability, the potentially dangerous file is not deleted. Arbitrary file contents can be written due to f.write(chunk) on line 125. Mindsdb does check later on line 149 in the save_file method in file-controller.py which calls the _handle_source method in file_handler.py if a file is of one of the types csv, json, parquet, xls, or xlsx. However, since the check happens after the file has already been written, the files will still exist (and will not be removed due to the path injection described earlier), just the _handle_source method will return an error. The same user-controlled source source is used also in another path injection sink on line 138. This leads to another path injection, which allows an attacker to delete any zip or tar.gz files on the server.
CVE-2023-50731
“—” beside the score: it is equal to NVD's CVSS score.
Score 9.1 from GitHub Security Advisory (severity: HIGH) published 2023-12-15. NVD baseline CVSS 9.1; sources differ by 0.0.
Also known asEUVD-2023-0150 (ENISA EUVD) · GHSA-j8w6-2r9h-cxhj (GitHub Security Advisories)Source: ENISA EUVD
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 9.1
- EG Score
- 9.1CRITICALmedium confidence
- EG Risk
- 41EG Risk 41/100
EG Risk is EchelonGraph's 0–100 priority score. It fuses impact severity (EG Severity, the CVSS base score, never the KEV-floored or EPSS-lifted EG Score) with real-world exploitation and automatability, under weights EchelonGraph set by hand, so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner.
How it’s computed (value × EchelonGraph’s weight)Severity91% × 45%Impact severity (EG Severity): CVSS 9.1 of 10. Never the KEV-floored or EPSS-lifted EG Score.Exploitation1.0% × 40%FIRST EPSS: the 30-day exploitation probability when EchelonGraph scored this CVE.Automatability0% × 15%CISA's BOD 26-04 default: no one has published Automatable for this CVE, and CISA treats it as “no” for a CVE not in KEV.SSVC (CISA's decision table, applied by EchelonGraph): Track at low or medium mission impact; Track* at high (mission-essential systems).Exploitation none (no CISA value, KEV listing or exploit code on record) · Automatable no (CISA's BOD 26-04 default) · Technical impact total (CISA's BOD 26-04 default). EchelonGraph holds no SSVC assessment of this CVE from CISA: none of these inputs is from Vulnrichment. EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE.Action: A fix is available. Apply it within your standard update timelines. - EPSS PROB
- 1.0%
- EPSS %ILE
- 62nd
- KEV
- Not listed
What the EG score is made of (scorer v4.0: the three questions the 0–10 score mixes, published apart · methodology)
The EG score (9.1): severity, escalated by confirmed exploitation. This CVE's 9.1 is its impact severity (EG Severity), not escalated.
- EG Severity
- 9.1 CRITICALCVSS-B, impact only: no KEV listing, EPSS or EG-KEV tier raises it.GitHub Security Advisory CVSS
- EG Likelihood
- 1.0% within 30 daysSource: FIRST EPSS (model v2026.06.15, score date 2026-11-01). FIRST's exploitation probability, not an EchelonGraph model.
- Confirmed exploitation
- None on record (CISA KEV, EG-KEV Tier 1)Reported apart from the likelihood: an observed fact, not a probability.
- EG Priority
- SSVC Track at medium mission impactTrack at low or medium mission impact; Track* at high (mission-essential systems).CISA BOD 26-04: 14 days if the affected system is publicly exposed; Fix on system upgrade if it is not.Each input and its source, and whom BOD 26-04 binds: the SSVC and BOD 26-04 blocks below.
SSVC (CISA's decision table, applied by EchelonGraph)Track at low or medium mission impact; Track* at high (mission-essential systems).
A fix is available. Apply it within your standard update timelines.
Exploitation none (no CISA value, KEV listing or exploit code on record) · Automatable no (CISA's BOD 26-04 default) · Technical impact total (CISA's BOD 26-04 default). EchelonGraph holds no SSVC assessment of this CVE from CISA: none of these inputs is from Vulnrichment. EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE. Mission impact is CISA's Mission & Well-being decision point, and only you can judge it. CISA's table makes it high when Mission Prevalence is Essential — the vulnerable component "directly provides capabilities that constitute at least one MEF for at least one entity" (MEF: mission essential function) — or when Public Well-Being Impact is Irreversible: "multiple fatalities are likely", the cyber-physical system "is likely lost or destroyed", "extreme or serious externalities" are imposed on other parties, or social systems such as elections or the financial grid "are destabilized and potentially collapse". CISA's decision table
BOD 26-04 (CISA's remediation timeline, Table 1)14 days if the affected system is publicly exposed; Fix on system upgrade if it is not.
The score's inputs: In CISA KEV no (CISA's KEV catalog) · Automatable no (CISA's BOD 26-04 default) · Technical impact total (CISA's BOD 26-04 default). Where an input reads “CISA's BOD 26-04 default”, no one has published it for this CVE, and CISA's implementation guidance says: “If “Automatable” and “Technical Impact” information items about a CVE ID are not available and the CVE ID is not in the KEV Catalog, CISA will treat its values as “no” and “total,” respectively, until CISA or a third party provides metadata about the CVE ID. CISA will always provide the Vulnrichment data for a CVE ID listed in the KEV Catalog.” Whether your system is publicly exposed is yours to answer. BOD 26-04 binds US Federal Civilian Executive Branch agencies; for anyone else it is CISA's published timeline, a reference rather than an obligation. The directive · how EchelonGraph applies it
Published
December 22, 2023
Last Modified
June 17, 2026
Advisory Details (4)
Auto-updated Sep 16, 2026GHSL-2023-182_GHSL-2023-184: Server-side request forgery (SSRF), arbitrary file write and limited file write vulnerabilities in mindsdb/mindsdb - CVE-2023-49795, CVE-2023-50731, CVE-2023-49796 | GitHub Security Lab
https://securitylab.github.com/advisories/GHSL-2023-182_GHSL-2023-184_mindsdb_mindsdb/GitHub Security Lab (GHSL) Vulnerability Report: Arbitary write GHSL-2023-182 · Advisory · mindsdb/mindshub · GitHub
https://github.com/mindsdb/mindsdb/security/advisories/GHSA-j8w6-2r9h-cxhjmindshub/mindsdb/api/http/namespaces/file.py at 1821da719f34c022890c9ff25810218e71c5abbc · mindsdb/mindshub · GitHub
https://github.com/mindsdb/mindsdb/blob/1821da719f34c022890c9ff25810218e71c5abbc/mindsdb/api/http/namespaces/file.py#L138mindshub/mindsdb/api/http/namespaces/file.py at 1821da719f34c022890c9ff25810218e71c5abbc · mindsdb/mindshub · GitHub
https://github.com/mindsdb/mindsdb/blob/1821da719f34c022890c9ff25810218e71c5abbc/mindsdb/api/http/namespaces/file.py#L122-L125Patch Availability(1)
| Vendor / Ecosystem | Fix (by version range) / Patch | Released | Source |
|---|---|---|---|
| pip | mindsdb @ 23.11.4.1 (fixes < 23.7.4.1) | — | ghsa |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(1 across 1 ecosystem)
PyPI(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| mindsdb | 0.6.5 ... 23.9.3.1 (448 versions) |
| — |
Weakness Classification(2)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 16× in last 7d / 55× in last 30d)
Each row is a time one of our pipelines fetched, updated or re-scored this CVE. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. An arrow marks a change the record states ("CVSS v3 → 9.1"); EPSS and GHSA rows show the values recorded at that time, not what changed (EPSS values are rounded; hover one for the exact figures). Most recent first.
Showing the most recent 96 of 234 refreshes on record for this CVE.
A repeat, a row identical to one the same pipeline wrote less than 10 seconds earlier, is not a separate refresh and is not counted. 4 repeat rows among the latest 100 are merged into the row they repeat. The 138 oldest rows on record are not shown and were not checked, so the counts can still include repeats.
- 2026-11-01 20:02 UTCEG score recompute
- 2026-11-01 20:02 UTCGHSA enrichmentGHSA-j8w6-2r9h-cxhj · GitHub severity HIGH · GitHub CVSS 9.1
- 2026-11-01 16:31 UTCEPSS rescoreEPSS 1.0% · 62nd percentile
- 2026-11-01 08:17 UTCGHSA enrichmentGHSA-j8w6-2r9h-cxhj · GitHub severity HIGH · GitHub CVSS 9.1
- 2026-11-01 08:17 UTCEG score recompute
- 2026-10-31 18:53 UTCEG score recompute
- 2026-10-31 16:30 UTCEPSS rescoreEPSS 1.0% · 62nd percentile
- 2026-10-30 17:45 UTCEG score recompute
- 2026-10-30 16:31 UTCEPSS rescoreEPSS 1.0% · 62nd percentile
- 2026-10-29 16:37 UTCEG score recompute
- 2026-10-29 16:30 UTCEPSS rescoreEPSS 1.0% · 62nd percentile
- 2026-10-28 16:29 UTCEPSS rescoreEPSS 1.0% · 62nd percentile
- 2026-10-28 15:29 UTCEG score recompute
- 2026-10-27 16:29 UTCEPSS rescoreEPSS 1.0% · 62nd percentile
- 2026-10-27 14:21 UTCEG score recompute
- 2026-10-26 16:29 UTCEPSS rescoreEPSS 1.0% · 62nd percentile
- 2026-10-25 17:30 UTCEG score recompute
- 2026-10-25 16:30 UTCEPSS rescoreEPSS 1.0% · 62nd percentile
- 2026-10-25 11:43 UTCEG score recompute
- 2026-10-24 16:29 UTCEPSS rescoreEPSS 1.0% · 62nd percentile
- 2026-10-24 10:33 UTCEG score recompute
- 2026-10-23 16:29 UTCEPSS rescoreEPSS 1.0% · 61st percentile
- 2026-10-23 09:22 UTCEG score recompute
- 2026-10-22 16:31 UTCEPSS rescoreEPSS 1.0% · 61st percentile
- 2026-10-22 08:13 UTCEG score recompute
Show 71 moreShow fewer
- 2026-10-21 16:29 UTCEPSS rescoreEPSS 1.0% · 61st percentile
- 2026-10-21 07:01 UTCEG score recompute
- 2026-10-20 16:30 UTCEPSS rescoreEPSS 1.0% · 61st percentile
- 2026-10-20 05:53 UTCEG score recompute
- 2026-10-19 16:29 UTCEPSS rescoreEPSS 1.0% · 61st percentile
- 2026-10-19 04:44 UTCEG score recompute
- 2026-10-18 16:29 UTCEPSS rescoreEPSS 1.0% · 61st percentile
- 2026-10-18 03:34 UTCEG score recompute
- 2026-10-17 16:30 UTCEPSS rescoreEPSS 1.0% · 61st percentile
- 2026-10-17 02:22 UTCEG score recompute
- 2026-10-16 16:36 UTCEPSS rescoreEPSS 1.0% · 61st percentile
- 2026-10-16 01:14 UTCEG score recompute
- 2026-10-15 16:29 UTCEPSS rescoreEPSS 1.0% · 61st percentile
- 2026-10-14 20:20 UTCEG score recompute
- 2026-10-14 16:30 UTCEPSS rescoreEPSS 1.0% · 61st percentile
- 2026-10-13 16:34 UTCEG score recompute
- 2026-10-13 16:30 UTCEPSS rescoreEPSS 1.0% · 61st percentile
- 2026-10-12 16:31 UTCEPSS rescoreEPSS 1.0% · 61st percentile
- 2026-10-12 15:24 UTCEG score recompute
- 2026-10-12 09:54 UTCOSV refresh
- 2026-10-11 21:40 UTCEG score recompute
- 2026-10-11 13:45 UTCEPSS rescoreEPSS 1.0% · 61st percentile
- 2026-10-10 19:57 UTCEPSS rescoreEPSS 1.0% · 61st percentile
- 2026-10-09 20:05 UTCEPSS rescoreEPSS 1.0% · 61st percentile
- 2026-10-08 17:06 UTCEPSS rescoreEPSS 1.0% · 61st percentile
- 2026-10-07 23:46 UTCEPSS rescoreEPSS 1.0% · 61st percentile
- 2026-10-06 15:15 UTCEPSS rescoreEPSS 1.0% · 61st percentile
- 2026-10-05 17:41 UTCEPSS rescoreEPSS 1.0% · 61st percentile
- 2026-10-04 23:20 UTCEPSS rescoreEPSS 1.0% · 61st percentile
- 2026-10-03 14:23 UTCEPSS rescoreEPSS 1.0% · 61st percentile
- 2026-10-01 19:48 UTCEPSS rescoreEPSS 1.0% · 60th percentile
- 2026-09-30 16:35 UTCEG score recompute
- 2026-09-30 15:01 UTCEPSS rescoreEPSS 1.0% · 60th percentile
- 2026-09-29 15:17 UTCEPSS rescoreEPSS 1.0% · 60th percentile
- 2026-09-28 13:49 UTCEPSS rescoreEPSS 1.0% · 60th percentile
- 2026-09-27 13:42 UTCEPSS rescoreEPSS 1.0% · 60th percentile
- 2026-09-26 00:22 UTCEPSS rescoreEPSS 1.0% · 60th percentile
- 2026-09-24 14:01 UTCEPSS rescoreEPSS 1.0% · 60th percentile
- 2026-09-23 13:46 UTCEPSS rescoreEPSS 1.0% · 60th percentile
- 2026-09-22 14:46 UTCEPSS rescoreEPSS 1.0% · 60th percentile
- 2026-09-22 12:46 UTCOSV refresh
- 2026-09-21 20:31 UTCEPSS rescoreEPSS 1.0% · 60th percentile
- 2026-09-20 20:14 UTCEPSS rescoreEPSS 1.0% · 60th percentile
- 2026-09-18 19:26 UTCEPSS rescoreEPSS 1.0% · 60th percentile
- 2026-09-17 19:25 UTCEPSS rescoreEPSS 1.0% · 60th percentile
- 2026-09-16 14:06 UTCEPSS rescoreEPSS 1.0% · 60th percentile
- 2026-09-16 05:11 UTCEPSS rescoreEPSS 1.0% · 60th percentile
- 2026-09-15 03:08 UTCEPSS rescoreEPSS 1.0% · 60th percentile
- 2026-09-13 16:44 UTCEPSS rescoreEPSS 1.0% · 60th percentile
- 2026-09-12 14:58 UTCEPSS rescoreEPSS 1.0% · 60th percentile
- 2026-09-11 14:50 UTCEPSS rescoreEPSS 1.0% · 60th percentile
- 2026-09-11 09:34 UTCEPSS rescoreEPSS 1.0% · 60th percentile
- 2026-09-08 21:58 UTCEPSS rescoreEPSS 1.0% · 60th percentile
- 2026-09-07 15:59 UTCEPSS rescoreEPSS 1.0% · 60th percentile
- 2026-09-06 13:45 UTCEPSS rescoreEPSS 1.0% · 60th percentile
- 2026-09-05 15:26 UTCEPSS rescoreEPSS 1.0% · 59th percentile
- 2026-09-04 13:58 UTCEPSS rescoreEPSS 1.0% · 59th percentile
- 2026-09-04 05:04 UTCEPSS rescoreEPSS 1.0% · 59th percentile
- 2026-09-03 09:59 UTCOSV refresh
- 2026-09-02 14:09 UTCEPSS rescoreEPSS 1.0% · 59th percentile
- 2026-09-01 13:51 UTCEPSS rescoreEPSS 1.0% · 59th percentile
- 2026-09-01 04:35 UTCEPSS rescoreEPSS 1.0% · 59th percentile
- 2026-08-30 19:15 UTCEPSS rescoreEPSS 1.0% · 59th percentile
- 2026-08-30 01:20 UTCEPSS rescoreEPSS 1.0% · 59th percentile
- 2026-08-28 21:39 UTCEPSS rescoreEPSS 1.0% · 59th percentile
- 2026-08-27 14:23 UTCEPSS rescoreEPSS 1.0% · 59th percentile
- 2026-08-26 14:44 UTCEPSS rescoreEPSS 1.0% · 59th percentile
- 2026-08-25 13:46 UTCEPSS rescoreEPSS 1.0% · 59th percentile
- 2026-08-24 14:14 UTCEPSS rescoreEPSS 1.0% · 59th percentile
- 2026-08-23 00:17 UTCEPSS rescoreEPSS 1.0% · 59th percentile
- 2026-08-21 23:47 UTCEPSS rescoreEPSS 1.0% · 59th percentile
Related CVEs(same product + same CWE)
Same product
10 shownPyPI:mindsdb
Same CWE
10 shownCWE-22 · CWE-918
Frequently asked(5)
What is CVE-2023-50731?
When was the CVE record for CVE-2023-50731 published?
Is CVE-2023-50731 actively exploited?
What is the CVSS score of CVE-2023-50731?
How do I remediate CVE-2023-50731?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2023-50731
Is Your Infrastructure Affected by CVE-2023-50731?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.