Argument injection in gotenberg - #VU166245

 

Argument injection in gotenberg - #VU166245

Published: November 16, 2026


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

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.


Affected software

gotenberg

Remediation

Install security update from vendor's website.

gotenberg - update to 8.40.0

External References

Related Security Bulletins