# CVE-2023-30620: Arbitrary File Write when Extracting a Remotely retrieved Tarball in mindsdb/mindsdb

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.99%, higher than 63% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-03-30T21:42:48.000Z
- Modified: 2026-09-10T03:49:52.273Z
- Also known as: GHSA-2g5w-29q9-w6hx, PYSEC-2023-27
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- mindsdb mindsdb: < 23.2.1.0 ; up to 23.1.5.0
- mindsdb (PyPI): before 23.2.1.0; before 4419b0f0019c000db390b54d8b9d06e1d3670039

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/mindsdb/mindsdb/security/advisories/GHSA-2g5w-29q9-w6hx> (exploit, advisory, mitigation, vendor-advisory, web)
- <https://github.com/mindsdb/mindsdb/commit/4419b0f0019c000db390b54d8b9d06e1d3670039> (fix, patch, web)
- <https://github.com/mindsdb/mindsdb/releases/tag/v23.2.1.0> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-30620> (advisory)
- <https://github.com/mindsdb/mindsdb> (package)
- <https://github.com/mindsdb/mindsdb/blob/afedd37c16e579b6dc075b0814e42d0505ccdc07/mindsdb/api/http/namespaces/file.py#L26..L134> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/mindsdb/PYSEC-2023-27.yaml> (web)

## Sources

- CVE List: [CVE-2023-30620](https://www.cve.org/CVERecord?id=CVE-2023-30620), CVE Terms of Use, modified 2025-02-04
- GitHub Advisory Database: [GHSA-2g5w-29q9-w6hx](https://github.com/advisories/GHSA-2g5w-29q9-w6hx), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-30620](https://nvd.nist.gov/vuln/detail/CVE-2023-30620), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2023-27](https://osv.dev/vulnerability/PYSEC-2023-27), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2023-30620 · Whole record: https://cve.day/CVE-2023-30620.json · Rebuilt by cve.day 2026-11-25T22:58:23.686Z
