CVE-2026-42589: Gotenberg - Command Injection
- Cve: CVE-2026-42589
- Name: Gotenberg - Command Injection
- Description: 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.
- Impact: Unauthenticated attackers can execute arbitrary OS commands remotely, potentially leading to full system compromise.
- Remediation: Update to version 8.31.0 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.03013
- Epss percentile: 0.8776
- Assignee: [email protected]
- Published at: 2026-05-14T16:16:21Z
- Age in days: 194
- Modified at: 2026-11-11T20:10:00Z
- Patch available: yes
- Public exploits total: 5
- References total: 5
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-42589
- Nvd status: analyzed
- Checked, none or zero: public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command |
Known exploited entries
| List | Added date | Due date | Ransomware use |
|---|---|---|---|
| vulncheck | 2026-06-23 | — | no |
Nuclei templates
| Id | Url |
|---|---|
| CVE-2026-42589 | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-42589.yaml |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/gotenberg/gotenberg/security/advisories/GHSA-rqgh-gxv4-6657 | nvd | 2026-05-14 |
| https://github.com/HackfutSecRoot/-GOTENBERG-RCE-CHAIN.git | vulncheck-xdb | 2026-10-03 |
| https://github.com/HackfutSecRoot/-GOTENBERG-RCE-CHAIN | poc-in-github | 2026-10-03 |
| https://github.com/fineman999/POC_CVE-2026-42589 | poc-in-github | 2026-05-30 |
| https://github.com/fineman999/POC_CVE-2026-42589.git | vulncheck-xdb | 2026-05-30 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/gotenberg/gotenberg/security/advisories/GHSA-rqgh-gxv4-6657 | nvd | Exploit, Mitigation, Vendor Advisory |
| https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-42589.yaml | nuclei_template | Nuclei Template |
| https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2026-42589 | vulncheck | Vulncheck Reported Exploitation |
| https://www.vulncheck.com/blog/cache-me-if-you-can | vulncheck | Vulncheck Reported Exploitation |
| https://api.vulncheck.com/v3/index/vulncheck-canaries?cve=CVE-2026-42589 | vulncheck | Vulncheck Reported Exploitation |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| thecodingmachine:gotenberg | < 8.31.0 | no | nvd | /v1/products/thecodingmachine/gotenberg |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| gotenberg/gotenberg | package, security_advisory | yes | /v1/repositories/gotenberg/gotenberg |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Known exploited by: vulncheck
- Vulncheck known exploited since: 2026-06-23
- Public exploit: yes
- Public exploit count: 5
- Public exploit first date: 2026-05-14
- Initial access: yes
- Initial access since: 2026-06-12
- Remote: yes
- Exposed hosts: 3128
- Checked, none or zero: known exploited, exploitation seen, authentication required
- Not known: known exploited since, hackerone reports