CVE-2025-64712
Path Traversal in unstructured Library Allows Arbitrary File Overwrite
Publication date: 2026-02-04
Last updated on: 2026-02-27
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| unstructured | unstructured | to 0.18.18 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-22 | The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. |
| CWE-73 | The product allows user input to control or influence paths or file names that are used in filesystem operations. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability exists in the unstructured library, which is used for ingesting and pre-processing various document types like PDFs, HTML, Word documents, and MSG files. Specifically, before version 0.18.18, there was a path traversal vulnerability in the partition_msg function. This flaw allows an attacker to write or overwrite arbitrary files on the filesystem by processing specially crafted malicious MSG files with attachments.
How can this vulnerability impact me? :
The vulnerability can have severe impacts because it allows an attacker to write or overwrite any file on the system without any privileges or user interaction. This can lead to complete system compromise, including the ability to execute arbitrary code, disrupt system availability, and compromise confidentiality and integrity of data.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
I don't know
How can this vulnerability be detected on my network or system? Can you suggest some commands?
I don't know
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, you should upgrade the unstructured library to version 0.18.18 or later, where the path traversal issue in the partition_msg function has been patched.