Path traversal in gotenberg - #VU166256
Published: November 16, 2026
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.