- Home
- Vulnerabilities
- CVE-2026-42589
CVE-2026-42589
Gotenberg is a Docker-powered stateless API for PDF files. Prior to 8.31.0, Gotenberg's…
Summary
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.
Affected products and versions
Go (1 line(s))
| Product | Versions | Fixed in | Source |
|---|---|---|---|
| github.com/gotenberg/gotenberg/v8 | before 8.31.0 (excluded) |
8.31.0 |
OSV |
Thecodingmachine (1 line(s))
| Product | Versions | Fixed in | Source |
|---|---|---|---|
| Gotenberg | before 8.31.0 (excluded) |
— | NVD |
Fix
Upgrade — Go/github.com/gotenberg/gotenberg/v8 8.31.0official source
Source : OSV
Workaround
No workaround provided.
Check whether you are affected
Gotenberg - Command Injectionofficial source
Nuclei template
nuclei -u https://VOTRE-HOTE -t http/cves/2026/CVE-2026-42589.yamlSource : Open
Public modules and templates
- Nuclei detection template · https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-42589.yaml
Timeline
- — CVE published (cve)
- — Nuclei detection template (nuclei) date first seen
CERT-FR advisories
- GO-2026-5636 — Gotenberg has Unauthenticated RCE via ExifTool Metadata Key Injection in github.com/gotenberg/gotenberg 25 Jun 2026
References
Data provenance
- Status
- NVD
- Publication date
- NVD
- Description
- NVD
- CVSS score
- CNA (vendor or assigner)
- Weakness (CWE)
- CNA (vendor or assigner)
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H(CVSS 3.1, CNA:security-advisories@github.com)- Weakness
- CWE-78 · Injection de commandes / code