{"id":"CVE-2026-42589","published":"2026-05-14T15:11:30Z","modified":"2026-05-14T18:59:21Z","title":"Gotenberg: Unauthenticated RCE via ExifTool Metadata Key Injection","vendor":"gotenberg","product":"gotenberg","tier":"core","eol":null,"affectedVersions":[{"vendor":"gotenberg","product":"gotenberg","versions":["< 8.31.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-05-14T18:58:43.735611Z","from":"CISA ADP","provenance":"source"},"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"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.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-30T13:36:28Z"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.03013,"percentile":0.8776,"date":"2026-11-23","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2026-06-23","exploitedFirstSeen":"2026-10-26","ransomware":false,"evidence":[{"url":"https://www.vulncheck.com/blog/cache-me-if-you-can","date":"2026-10-26"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-10-31&host_type=src&vulnerability=cve-2026-42589","date":"2026-10-31"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-11-01&host_type=src&vulnerability=cve-2026-42589","date":"2026-11-01"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-11-04&host_type=src&vulnerability=cve-2026-42589","date":"2026-11-04"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-11-14&host_type=src&vulnerability=cve-2026-42589","date":"2026-11-14"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-11-19&host_type=src&vulnerability=cve-2026-42589","date":"2026-11-19"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-11-20&host_type=src&vulnerability=cve-2026-42589","date":"2026-11-20"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-11-21&host_type=src&vulnerability=cve-2026-42589","date":"2026-11-21"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-11-22&host_type=src&vulnerability=cve-2026-42589","date":"2026-11-22"}],"evidenceTotal":9,"provenance":"source"},"exploited":true,"otx":{"pulseCount":9,"pulses":[{"name":"How attackers are jailbreaking LLMs with CTF framing and how to catch them","url":"https://otx.alienvault.com/pulse/6a32258e0d5a708567c867cc","created":"2026-06-17"},{"name":"How attackers are jailbreaking LLMs with CTF framing and how to catch them","url":"https://otx.alienvault.com/pulse/6a30537886784fbb90bd4a5b","created":"2026-06-15"},{"name":"Known_Cve | May 23, 2026","url":"https://otx.alienvault.com/pulse/6a10657811ce8e8449e3af12","created":"2026-05-22"},{"name":"Known_Cve | May 22, 2026","url":"https://otx.alienvault.com/pulse/6a0f13fd08d4602f56683eec","created":"2026-05-21"},{"name":"Known_Cve | May 21, 2026","url":"https://otx.alienvault.com/pulse/6a0dc2491bcde0bdb3d7e14e","created":"2026-05-20"},{"name":"Known_Cve | May 20, 2026 | Part 1/2","url":"https://otx.alienvault.com/pulse/6a0c70e0012db9b5d3f1491b","created":"2026-05-19"},{"name":"Known_Cve | May 19, 2026 | Part 1/2","url":"https://otx.alienvault.com/pulse/6a0b1fb13f83c21729d9156a","created":"2026-05-18"},{"name":"Known_Cve | May 18, 2026 | Part 1/2","url":"https://otx.alienvault.com/pulse/6a09cd588d4c1cca2886f0d1","created":"2026-05-17"},{"name":"Known_Cve | May 17, 2026 | Part 1/2","url":"https://otx.alienvault.com/pulse/6a087bdcf5d6f8e5402ce221","created":"2026-05-16"}],"provenance":"machine"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/gotenberg/gotenberg/security/advisories/GHSA-rqgh-gxv4-6657","tags":["x_refsource_CONFIRM"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Go","package":"github.com/gotenberg/gotenberg/v8","vulnerableRanges":["all versions"],"patched":[],"from":["GHSA-rqgh-gxv4-6657","GO-2026-5636"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/gotenberg/gotenberg/v7","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2026-5636"],"provenance":"source"}],"advisories":[{"id":"GHSA-rqgh-gxv4-6657","url":"https://github.com/advisories/GHSA-rqgh-gxv4-6657","severity":"CRITICAL","ecosystem":"Go","package":"github.com/gotenberg/gotenberg/v8","vulnerableRanges":[],"patched":[],"provenance":"source","from":"GHSA"},{"id":"GO-2026-5636","url":"https://osv.dev/vulnerability/GO-2026-5636","severity":null,"ecosystem":"Go","package":"github.com/gotenberg/gotenberg/v7","vulnerableRanges":["all versions"],"patched":[],"provenance":"source","from":"OSV"}],"euvd":{"id":"EUVD-2026-30311","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-30311","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":2,"skipped":0,"earliest":"2026-05-30","earliestUrl":"https://github.com/fineman999/POC_CVE-2026-42589","repos":[{"name":"fineman999/POC_CVE-2026-42589","url":"https://github.com/fineman999/POC_CVE-2026-42589","stars":3,"created":"2026-05-30"},{"name":"HackfutSecRoot/-GOTENBERG-RCE-CHAIN","url":"https://github.com/HackfutSecRoot/-GOTENBERG-RCE-CHAIN","stars":2,"created":"2026-10-03"}]},"nuclei":[{"id":"CVE-2026-42589","name":"Gotenberg - Command Injection","severity":"critical","path":"http/cves/2026/CVE-2026-42589.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-42589.yaml"}],"first":{"date":"2026-05-30","source":"PoC-in-GitHub","url":"https://github.com/fineman999/POC_CVE-2026-42589"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2026-05-14","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2026-42589","provenance":"source"},{"date":"2026-05-30","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/fineman999/POC_CVE-2026-42589","provenance":"source"},{"date":"2026-10-26","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://www.vulncheck.com/blog/cache-me-if-you-can","provenance":"source"}],"speed":{"daysToPublicExploit":16,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":71.7,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":5.0,"detail":"added 153 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":17.55,"detail":"percentile 0.8776"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"2 PoC-in-GitHub repos; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":2.27,"detail":"9 pulses"},{"name":"CVSS severity","points":6.86,"detail":"base score 9.8"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}