CVE-2026-42597
Gotenberg allows Chromium URL conversion routes to read arbitrary files under /tmp via file:// scheme
Auswirkung
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.
Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, ohne Anmeldung, ohne Zutun eines Nutzers. Dafür müssen bestimmte Bedingungen erfüllt sein, was einen Angriff erschwert. Bei Erfolg: hohes Risiko, dass Daten ausgelesen werden.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| go | github.com/gotenberg/gotenberg/v8 | <= 8.31.0 | 8.32.0 |
| go | github.com/gotenberg/gotenberg/v7 | <= 7.10.2 | nicht erfasst |
Betroffene Produkte · Thecodingmachine
| Produkt | Betroffene Versionen |
|---|---|
| Gotenberg | vor 8.32.0 |