Argument injection in gotenberg - #VU166245
Published: November 16, 2026
Vulnerability details
The vulnerability allows a remote attacker to read arbitrary files accessible to the Gotenberg service account, including secrets and other users' documents.
The vulnerability exists due to argument injection in Gotenberg's QPdf.Encrypt when passing caller-controlled password fields directly as qpdf arguments. A remote attacker can submit ownerPassword=@/proc/self/cmdline and a userPassword containing embedded newlines to POST /forms/pdfengines/encrypt, injecting --add-attachment to embed a readable file in the returned PDF and extract its contents.