No fixed version published. Check the advisory or remove the package.
Affected versions
| If you run | Upgrade to |
|---|---|
| All versions | No fix published |
No fixed version listed yet.Check the vendor advisory. References ↓
gotenberg · gotenberg
Gotenberg, the Docker-based stateless PDF API, has an input validation flaw in its /forms/pdfengines/metadata/write endpoint, where metadata JSON keys are passed unsanitised to ExifTool, so newline characters in a key can inject arbitrary ExifTool arguments. An attacker with plain network access can exploit this in a single unauthenticated HTTP request, with no user interaction or special configuration needed, to execute operating system commands.
Gotenberg is a Docker-powered stateless API for PDF files. Prior to 8.31.0, Gotenberg's /forms/pdfengines/metadata/write HTTP endpoint accepts a JSON metadata object and passes its keys directly to ExifTool via the go-exiftool library. No validation is performed on key characters. A \n embedded in a JSON key splits the ExifTool stdin stream into a new argument line, allowing an attacker to inject arbitrary ExifTool flags — including -if, which evaluates Perl expressions. This achieves unauthenticated OS command execution in a single HTTP request. The response is HTTP 200 with a valid PDF, making the attack transparent to basic monitoring. This vulnerability is fixed in 8.31.0.
First seen exploited 5 months after disclosure. Public exploit code (PoC-in-GitHub) appeared 16 days after disclosure.
gotenberg gotenberg
Affected: < 8.31.0
2 packages in 1 ecosystem. Main package: github.com/gotenberg/gotenberg/v8.
No fixed version published. Check the advisory or remove the package.
| If you run | Upgrade to |
|---|---|
| All versions | No fix published |
Forks, repackagings and products that include the affected code. Each has its own fixed version.
Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.