CVE-2025-11849 Details
Description
Versions of the package mammoth from 0.3.25 and before 1.11.0; versions of the package mammoth from 0.3.25 and before 1.11.0; versions of the package mammoth before 1.11.0; versions of the package org.zwobble.mammoth:mammoth before 1.11.0 are vulnerable to Directory Traversal due to the lack of path or file type validation when processing a docx file containing an image with an external link (r:link attribute instead of embedded r:embed). The library resolves the URI to a file path and after reading, the content is encoded as base64 and included in the HTML output as a data URI. An attacker can read arbitrary files on the system where the conversion is performed or cause an excessive resources consumption by crafting a docx file that links to special device files such as /dev/random or /dev/zero.
A directory traversal vulnerability has been identified in the Mammoth library, specifically in versions prior to 1.11.0. This vulnerability arises from inadequate validation of file paths and types when processing DOCX files that contain images linked externally via the 'r:link' attribute, rather than embedded. The library resolves these URIs to file paths and reads the files without proper validation. The extracted content is then encoded in base64 and included in the HTML output as a data URI. This flaw enables attackers to read arbitrary files from the system where the conversion takes place. Additionally, by crafting a DOCX file that links to certain device files like '/dev/random' or '/dev/zero', an attacker can cause excessive resource consumption, leading to a denial-of-service condition.
Users are advised to upgrade to Mammoth version 1.11.0 or higher, which disables external file access by default.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 17, 2025CISA-ADP
Assessed Oct 17, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gist.github.com/AudunWA/4d690d9ae5efdafe7cf71d9c2ee90a10 | CISA-ADP | ExploitTechnical Description |
| https://gist.github.com/AudunWA/4d690d9ae5efdafe7cf71d9c2ee90a10 | [email protected] | ExploitTechnical Description |
| https://github.com/mwilliamson/mammoth.js/commit/c54aaeb43a7941317c1f3c119ffa92090f988820 | [email protected] | Source CodeVendor |
| https://security.snyk.io/vuln/SNYK-DOTNET-MAMMOTH-13561968 | [email protected] | AdvisoryRemedy |
| https://security.snyk.io/vuln/SNYK-JAVA-ORGZWOBBLEMAMMOTH-13561969 | [email protected] | AdvisoryRemedy |
| https://security.snyk.io/vuln/SNYK-JS-MAMMOTH-13554470 | [email protected] | AdvisoryExploitRemedy |
| https://security.snyk.io/vuln/SNYK-PYTHON-MAMMOTH-13561967 | [email protected] | AdvisoryRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | CISA-ADP |
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| mammoth | All versions |
CPE
Remediation
| |
| org.zwobble.mammoth | All versions |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Oct 17, 2025 | CVE Modified | CISA-ADP |
| Oct 17, 2025 | New CVE Received | [email protected] |
Volerion