GHSA-gm8q-m8mv-jj5m: Unstructured has Path Traversal via Malicious MSG Attachment that Allows Arbitrary File Write
- Identifiers
- CVE-2025-64712GHSA-gm8q-m8mv-jj5m
- Published
- Record updated
- Affected
- unstructured <= 0.18.17
- Fixed in
- 0.18.18
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.7%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .
Summary
A path traversal flaw in the `partition_msg` function of Unstructured lets a crafted MSG file with attachment filenames containing sequences like `../../../etc/cron.d/malicious` write attachments to attacker-chosen paths when `process_attachments=True` is enabled. The source says this can lead to arbitrary file overwrite, remote code execution via overwritten configuration files, cron jobs or Python packages, data corruption, and denial of service. The library does not sanitize attachment filenames before file write operations.
Mitigation
Until patched, set `process_attachments=False` when processing untrusted MSG files, avoid processing MSG files from untrusted sources, or implement additional filename validation before processing.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- unstructuredPyPILLM dependency since 2023-04-12, 8 tracked dependents
Related items
- MediumCVE-2026-143864: InfiniFlow RAGFlow template injection in Canvas StringTransform HandlerSimilar attack, NVD/CVE Database
- MediumCVE-2026-85259: Gemini CLI Triage Flaw Lets Issue Authors Run Code in GitHub ActionsSimilar attack, StepSecurity Blog
- MediumCVE-2026-143967: Wise Chat with AI unauthenticated stored cross-site scriptingSimilar attack, NVD/CVE Database
- MediumCVE-2026-135917: Apache Camel A2A component confused deputy via shared message headersSimilar attack, NVD/CVE Database
- MediumCVE-2026-107489: Improper Authentication vulnerability in Apache Camel A2A component. This issue affects Apache Camel: from 4.21.0…Similar attack, NVD/CVE Database