CVE-2023-30620 json
Arbitrary File Write when Extracting a Remotely retrieved Tarball in mindsdb/mindsdb
published 2023-03-30 3 y ago modified 2026-09-10 1 mo ago also GHSA-2g5w-29q9-w6hx , PYSEC-2023-27 , EUVD-2023-0148
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 62%
- public exploits
- 0
- none known
Summary
mindsdb is a Machine Learning platform to help developers build AI solutions. In affected versions an unsafe extraction is being performed using `tarfile.extractall()` from a remotely retrieved tarball. Which may lead to the writing of the extracted files to an unintended location. Sometimes, the vulnerability is called a TarSlip or a ZipSlip variant. An attacker may leverage this vulnerability to overwrite any local file which the server process has access to. There is no risk of file exposure with this vulnerability. This issue has been addressed in release `23.2.1.0 `. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Patch / fix
- pypi mindsdb 23.2.1.0
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 21 mo ago
Exploit prediction
0.99% chance of exploitation in the next 30 days, higher than 62% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/mindsdb/mindsdb/security/advisories/GHSA-2g5w-29q9-w6hx referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | mindsdb | <23.2.1.0 |
23.2.1.0 |
Affected products
- mindsdb mindsdb
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/mindsdb/mindsdb/commit/4419b0f0019c000db390b54d8b9d06e1d3670039
web, patch
-
github.com
/mindsdb/mindsdb/security/advisories/GHSA-2g5w-29q9-w6hx
web, exploit, mitigation, vendor-advisory, advisory
-
github.com
/mindsdb/mindsdb/releases/tag/v23.2.1.0
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2023-30620
advisory
-
github.com
/mindsdb/mindsdb
package
-
github.com
/mindsdb/mindsdb/blob/afedd37c16e579b6dc075b0814e42d0505ccdc07/mindsdb/api/http/namespaces/file.py#L26..L134
web
-
github.com
/pypa/advisory-database/tree/main/vulns/mindsdb/PYSEC-2023-27.yaml
web
Sources
- CVE List CVE-2023-30620
- GitHub Advisory GHSA-2g5w-29q9-w6hx
- NVD CVE-2023-30620
- OSV PYSEC-2023-27
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.