CVE-2026-42589
CRITICAL 9.8CVSS 3.1Gotenberg has Unauthenticated RCE via ExifTool Metadata Key Injection
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.
- Published
- 14 May 2026
- Last modified
- 24 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-78
- Also known as
- GHSA-rqgh-gxv4-6657GO-2026-5636
- Sources
- NVDJSONOSV GHSA-rqgh-gxv4-6657JSONOSV GO-2026-5636JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | thecodingmachine | gotenbergcpe:2.3:a:thecodingmachine:gotenberg:*:*:*:*:*:*:*:* |
< 8.31.0 | 8.31.0 |
| OSV | Go | github.com/gotenberg/gotenberg/v8 | = 8.29.1 | |
| OSV | Go | github.com/gotenberg/gotenberg/v8 | < 8.31.0 | 8.31.0 |
References
- https://github.com/gotenberg/gotenberg/security/advisories/GHSA-rqgh-gxv4-6657 · Exploit, Mitigation, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-42589 · ADVISORY
- https://github.com/gotenberg/gotenberg · PACKAGE
- https://github.com/gotenberg/gotenberg/releases/tag/v8.31.0 · WEB
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 14 May 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Jun 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 7 May 2026)