Path traversal in gotenberg - #VU166256

 

Path traversal in gotenberg - #VU166256

Published: November 16, 2026


Vulnerability identifier: #VU166256
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to create ZIP archives with malicious entry names that may overwrite files outside the extraction directory when extracted.

The vulnerability exists due to improper pathname sanitization in Gotenberg's outputFilenameMiddleware when processing the Gotenberg-Output-Filename header on Linux, where filepath.Base does not remove backslashes. A remote attacker can supply filenames such as ........WindowsSystem32evil_0.pdf or C:WindowsTempevil_0.pdf through Chromium conversion routes using splitMode to inject traversal or absolute paths into ZIP entries.


Affected software

gotenberg

Remediation

Install security update from vendor's website.

gotenberg - update to 8.35.0

External References

Related Security Bulletins