Unstructured has Path Traversal via Malicious MSG Attachment that Allows Arbitrary File Write
CVE-2025-64712 · GHSA-gm8q-m8mv-jj5m · published 2026-02-03 · updated 2026-02-04
- Severity
- Critical
- CVSS score
- 9.8
- Chance of exploitation (EPSS)
- 0.69%
- Fixed in
- 0.18.18
- Exploitation No known exploitation
- Automatable Yes
- Technical impact Total
- CISA SSVC
When processed with process_attachments=True, the library writes the attachment to an attacker-controlled path, potentially leading to: Arbitrary file overwrite Remote code execution (via overwriting configuration files, cron jobs, or Python packages) Data corruption Denial of service
Upgrade unstructured to 0.18.18 or later.
Until patched, users can: Set process_attachments=False when processing untrusted MSG files Avoid processing MSG files from untrusted sources Implement additional filename validation before processing
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| unstructured | PyPI | <= 0.18.17 | 0.18.18 |
- CriticalMCP Path Traversal Allows Full-Filesystem Read and JWT Secret Exfiltration Leading to Account Takeoverlangflow, langflow-base
- CriticalVibe-Trading FastAPI endpoints permit unauthenticated access, file upload, and an RCE chainvibe-trading-ai
- Critical@zereight/mcp-gitlab: Unauthenticated arbitrary file read via `upload_markdown` enables PAT exfiltration and full account takeover@zereight/mcp-gitlab
- CriticalFlowise RCE via SQL Database Chain Nodeflowise, flowise-components
- CriticalLangroid: SQLChatAgent dangerous-function blocklist can be bypassed with quoted or schema-qualified pg_read_file callslangroid
- Criticalfast-mcp-telegram: Bearer token path traversal bypasses reserved Telegram session protectionfast-mcp-telegram
- Criticalunstructured: Server-Side Request Forgery in the URL-based partitioningunstructured
- Mediumunstructured: Stored XSS via unescaped HTML generationunstructured
- Mediumunstructured XML External Entity (XXE)unstructured
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.