Gotenberg <= 8.30.1 - Remote Code Execution
Gotenberg through 8.30.1 sanitizes only the keys of the JSON metadata submitted to the PDF metadata write endpoint, leaving the values unvalidated. A newline inside a metadata value is written straight to the ExifTool process standard input, where it terminates the current argument and starts a new one, letting an unauthenticated attacker inject arbitrary ExifTool arguments and execute operating system commands through an advanced formatting expression. References: https://github.com/gotenberg/gotenberg/security/advisories/GHSA-q7r4-hc83-hf2q https://github.com/gotenberg/gotenberg/commit/405f1069c026bb08f319fb5a44e5c67c33208318 https://github.com/gotenberg/gotenberg/releases/tag/v8.31.0 https://github.com/vulhub/vulhub/tree/master/gotenberg/CVE-2026-40281 https://nvd.nist.gov/vuln/detail/CVE-2026-40281 Remediation: Update to version 8.31.0 or later, which validates metadata values in addition to metadata keys.
10 assets checked · domain, subdomain, ipv4