{"id":"CVE-2025-64712","published":"2026-02-04T17:34:51Z","modified":"2026-02-04T19:24:12Z","title":"Unstructured has Path Traversal via Malicious MSG Attachment that Allows Arbitrary File Write","vendor":"Unstructured-IO","product":"unstructured","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00794,"percentile":0.52985,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-73","name":"External Control of File Name or Path"}],"references":[{"url":"https://github.com/Unstructured-IO/unstructured/security/advisories/GHSA-gm8q-m8mv-jj5m","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Unstructured-IO/unstructured/commit/b01d35b2373fd087d2e15162b9c021663c97155d","tags":["x_refsource_MISC"]}],"priority":{"score":17.5,"factors":[{"name":"EPSS percentile","points":10.6},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"unstructured-io","affectedVersions":[{"vendor":"Unstructured-IO","product":"unstructured","versions":["< 0.18.18"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-02-04T19:24:03.397110Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"unstructured","vulnerableRanges":["<0.18.18"],"patched":["0.18.18"],"from":["GHSA-gm8q-m8mv-jj5m","PYSEC-2026-558"],"provenance":"source"}],"summary":{"text":"The unstructured library's partition_msg function, which handles MSG files in the unstructured open-source document ingestion and pre-processing package from Unstructured-IO, contains a path traversal flaw in how it handles attachments. An attacker who can supply a malicious MSG file with attachments for processing can write or overwrite arbitrary files on the filesystem, with no authentication or user interaction required and only network reachability to the processing service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:42Z"},"euvd":{"id":"EUVD-2025-206785","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-unstructured-io-unstructured-cve-2024-46455","parents":[{"from":"CVE-2024-46455","to":"CVE-2025-64712","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["unstructured/__version__.py"],"commits":["https://github.com/Unstructured-IO/unstructured/commit/171b5df09fc3346aba8ce91c04de5b3e094a86bd","https://github.com/Unstructured-IO/unstructured/commit/b01d35b2373fd087d2e15162b9c021663c97155d"],"basis":"rarely changed file"}]}],"children":[{"from":"CVE-2025-64712","to":"CVE-2026-71428","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["unstructured/__version__.py"],"commits":["https://github.com/Unstructured-IO/unstructured/commit/b01d35b2373fd087d2e15162b9c021663c97155d","https://github.com/Unstructured-IO/unstructured/commit/445c95735c4045057f51f399bc04c657751923bd"],"basis":"rarely changed file"}]}]}}