Skip to content

CVE-2026-42597 Gotenberg: Chromium URL conversion routes read arbitrary files under /tmp via file:// scheme

MediumCVSS 5.9 EPSS 0.28%
Published
Updated
Exploit status
No public exploit known

Description

Gotenberg is a Docker-powered stateless API for PDF files. Prior to 8.32.0, the /forms/chromium/convert/url and /forms/chromium/screenshot/url routes accept url=file:///tmp/... from anonymous callers. The default Chromium deny-list intentionally exempts file:///tmp/ so HTML/Markdown routes can load their own request-local assets, and those routes apply a per-request AllowedFilePrefixes guard to scope the read. The URL routes never set AllowedFilePrefixes, so the scope guard silently skips. Alice enumerates /tmp/, walks Gotenberg's per-request working directories, and reads the raw source files of other in-flight conversions as rendered PDF output. This vulnerability is fixed in 8.32.0.

Affected products

ProductAffected versionsFixed in
gotenberg = < 8.32.0 No fix listed
gotenberg(Go) < 8.32.0 8.32.0
gotenberg(Go) <= 7.10.2 No fix listed
gotenberg(Go) All versions No fix listed
gotenberg(Go) <= 8.31.0 No fix listed
thecodingmachine gotenberg < 8.32.0 8.32.0

References