CVE-2025-64712Critical· 9.8▾ MidnightUnstructured has Path Traversal via Malicious MSG Attachment that Allows Arbitrary File Write
▾ Midnight zone — Critical, or high with PoC / in-the-wild
impact 53.9 · likelihood 0.1 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Exploit-prediction probability, daily snapshots since Sep 12.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via OSV
Last analysed / modified upstream
0.6%
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.
An attacker can craft a malicious .msg file with attachment filenames containing path traversal sequences (e.g.,
../../../etc/cron.d/malicious). When processed with process_attachments=True, the library writes the attachment to an
attacker-controlled path, potentially leading to:
The vulnerability affects the MSG file partitioning functionality when process_attachments=True is enabled.
The library does not sanitize attachment filenames in MSG files before using them in file write operations, allowing directory traversal sequences to escape the intended output directory.
Until patched, users can:
process_attachments=False when processing untrusted MSG filesunstructured < 0.18.18Upgrade to a patched release:
unstructured 0.18.18Connected by shared product, vendor, weakness, or advisory.
CVE-2026-71428Critical· 9.3The unstructured library provides open-source components for ingesting and pre-processing images and text documents, such as PDFs, HTML, Word docs, and many more
CVE-2024-46455Mediumunstructured XML External Entity (XXE)