CVE-2025-64712
CRITICAL 9.8CVSS 3.1Unstructured has Path Traversal via Malicious MSG Attachment that Allows Arbitrary File Write
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.
- Published
- 4 Feb 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-22CWE-73
- Also known as
- GHSA-gm8q-m8mv-jj5mPYSEC-2026-558
- Sources
- NVDJSONOSV GHSA-gm8q-m8mv-jj5mJSONOSV PYSEC-2026-558JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | unstructured | unstructuredcpe:2.3:a:unstructured:unstructured:*:*:*:*:*:python:*:* |
< 0.18.18 | 0.18.18 |
| OSV | PyPI | unstructured | < 0.18.18 | 0.18.18 |
References
- https://github.com/Unstructured-IO/unstructured/commit/b01d35b2373fd087d2e15162b9c021663c97155d · Patch, WEB
- https://github.com/Unstructured-IO/unstructured/security/advisories/GHSA-gm8q-m8mv-jj5m · Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-64712 · ADVISORY
- https://github.com/Unstructured-IO/unstructured · PACKAGE
- https://pypi.org/project/unstructured · PACKAGE
- https://github.com/advisories/GHSA-gm8q-m8mv-jj5m · ADVISORY
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 4 Feb 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 29 Jun 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 3 Feb 2026)