OS Command Injection in gotenberg - CVE-2026-42589

 

OS Command Injection in gotenberg - CVE-2026-42589

Published: May 5, 2026


Vulnerability identifier: #VU129641
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-42589
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code.

The vulnerability exists due to improper neutralization of special elements used in an os command in the /forms/pdfengines/metadata/write endpoint when processing JSON metadata keys. A remote attacker can send a specially crafted HTTP request with a metadata key containing embedded newline characters to execute arbitrary code.

The issue occurs because newline characters in a JSON metadata key are forwarded to ExifTool and can inject additional flags such as -if, which evaluates Perl expressions.


Affected software

gotenberg

How to mitigate CVE-2026-42589

Install security update from vendor's website.

gotenberg - update to 8.30.0

External References

Related Security Bulletins