CVE-2025-64712 Unstructured has Path Traversal via Malicious MSG Attachment that Allows Arbitrary File Write
Attackers can write or overwrite arbitrary files on the filesystem by processing malicious MSG attachments, affecting users of the unstructured library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-64712?
CVE-2025-64712 is a critical path traversal vulnerability in Unstructured-IO unstructured, published on 4 Feb 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Which versions are affected by CVE-2025-64712?
3 open source packages ship an affected version, including unstructured. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
unstructured PyPI | All versions | 0.18.18 |
unstructured PyPI | All versions | 0.18.18 |
unstructured PyPI | All versions | 0.18.18 |
Products include Unstructured Unstructured.
How do I fix CVE-2025-64712?
Upgrade unstructured to 0.18.18 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2025-64712 being exploited?
There is no known exploitation of CVE-2025-64712 in the wild and no public exploit code.
Sources
Also known as GHSA-gm8q-m8mv-jj5m, PYSEC-2026-558.