# CVE-2025-64712: Unstructured has Path Traversal via Malicious MSG Attachment that Allows Arbitrary File Write

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- 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.69%, higher than 53% of CVEs (2026-12-01)
- Published: 2026-02-03T17:43:56.000Z
- Modified: 2026-09-10T03:50:34.982Z
- Also known as: GHSA-gm8q-m8mv-jj5m, PYSEC-2026-558
- Weaknesses: CWE-22, CWE-73
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

The unstructured library provides open-source components for ingesting and pre-processing images and text documents, such as PDFs, HTML, Word docs, and many more. Prior to version 0.18.18, a path traversal vulnerability in the partition_msg function allows an attacker to write or overwrite arbitrary files on the filesystem when processing malicious MSG files with attachments. This issue has been patched in version 0.18.18.

(As written by CVE List.)

## Affected

- Unstructured-IO unstructured: < 0.18.18
- unstructured (PyPI): before 0.18.18
- unstructured unstructured: before 0.18.18

## Every score

- GitHub_M: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/Unstructured-IO/unstructured/security/advisories/GHSA-gm8q-m8mv-jj5m> (mitigation, vendor-advisory, web)
- <https://github.com/Unstructured-IO/unstructured/commit/b01d35b2373fd087d2e15162b9c021663c97155d> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-64712> (advisory)
- <https://github.com/Unstructured-IO/unstructured> (package)
- <https://pypi.org/project/unstructured> (package)
- <https://github.com/advisories/GHSA-gm8q-m8mv-jj5m> (advisory)

## Sources

- CVE List: [CVE-2025-64712](https://www.cve.org/CVERecord?id=CVE-2025-64712), CVE Terms of Use, modified 2026-02-04
- GitHub Advisory Database: [GHSA-gm8q-m8mv-jj5m](https://github.com/advisories/GHSA-gm8q-m8mv-jj5m), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-64712](https://nvd.nist.gov/vuln/detail/CVE-2025-64712), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-558](https://osv.dev/vulnerability/PYSEC-2026-558), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2025-64712 · Whole record: https://cve.day/CVE-2025-64712.json · Rebuilt by cve.day 2026-11-25T22:59:11.049Z
