Path traversal in mammoth
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | mammoth | 0.3.25 to before 1.11.0 | 1.11.0 | Patch available | CNA |
| — | mammoth | 0.3.25 to before 1.11.0 | 1.11.0 | Patch available | CNA |
| — | Mammoth | before 1.11.0 | 1.11.0 | Patch available | CNA |
| — | org.zwobble.mammoth:mammoth | before 1.11.0 | 1.11.0 | Patch available | CNA |
| — | mammoth (npm) | 0.3.25 to before 1.11.0 | 1.11.0 | Patch available | GHSA-rmjr-87wv-gf87 |
| — | org.zwobble.mammoth:mammoth (Maven) | before 1.11.0 | 1.11.0 | Patch available | GHSA-rmjr-87wv-gf87 |
| — | mammoth (PyPI) | 0.3.25 to before 1.11.0 | 1.11.0 | Patch available | GHSA-rmjr-87wv-gf87 |
| — | Mammoth (NuGet) | before 1.11.0 | 1.11.0 | Patch available | GHSA-rmjr-87wv-gf87 |
- mammoth Vendor— Affected 0.3.25 to before 1.11.0 Fixed in 1.11.0 Patch available CNA
- mammoth Vendor— Affected 0.3.25 to before 1.11.0 Fixed in 1.11.0 Patch available CNA
- Mammoth Vendor— Affected before 1.11.0 Fixed in 1.11.0 Patch available CNA
- org.zwobble.mammoth:mammoth Vendor— Affected before 1.11.0 Fixed in 1.11.0 Patch available CNA
- mammoth (npm) Vendor— Affected 0.3.25 to before 1.11.0 Fixed in 1.11.0 Patch available GHSA-rmjr-87wv-gf87
- org.zwobble.mammoth:mammoth (Maven) Vendor— Affected before 1.11.0 Fixed in 1.11.0 Patch available GHSA-rmjr-87wv-gf87
- mammoth (PyPI) Vendor— Affected 0.3.25 to before 1.11.0 Fixed in 1.11.0 Patch available GHSA-rmjr-87wv-gf87
- Mammoth (NuGet) Vendor— Affected before 1.11.0 Fixed in 1.11.0 Patch available GHSA-rmjr-87wv-gf87
Remediation
- Fix · CNA mammoth Fixed in 1.11.0
- Fix · CNA mammoth Fixed in 1.11.0
- Fix · CNA Mammoth Fixed in 1.11.0
- Fix · CNA org.zwobble.mammoth:mammoth Fixed in 1.11.0
- Fix · GHSA-rmjr-87wv-gf87 mammoth (npm) Fixed in 1.11.0 Advisory →
- Fix · GHSA-rmjr-87wv-gf87 org.zwobble.mammoth:mammoth (Maven) Fixed in 1.11.0 Advisory →
- Fix · GHSA-rmjr-87wv-gf87 mammoth (PyPI) Fixed in 1.11.0 Advisory →
- Fix · GHSA-rmjr-87wv-gf87 Mammoth (NuGet) Fixed in 1.11.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-11849
- 2026-10-03 Alias added: GHSA-rmjr-87wv-gf87
References
Sources
- CVE-2025-11849 · CVE Program
- CVE-2025-11849 · NVD
- FIRST EPSS
- GHSA-rmjr-87wv-gf87 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences