{"id":"CVE-2026-40281","published":"2026-05-06T20:46:47Z","modified":"2026-05-07T12:33:44Z","title":"Gotenberg vulnerable to argument injection via newlines in ExifTool metadata values","vendor":"gotenberg","product":"gotenberg","tier":"core","eol":null,"affectedVersions":[{"vendor":"gotenberg","product":"gotenberg","versions":["<= 8.30.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-05-07T12:32:33.631778Z","from":"CISA ADP","provenance":"source"},"description":{"text":"Gotenberg is a Docker-powered stateless API for PDF files. In versions 8.30.1 and earlier, the metadata write endpoint validates metadata keys for control characters but leaves metadata values unsanitized. A newline character in a metadata value splits the ExifTool stdin line into two separate arguments, allowing injection of arbitrary ExifTool pseudo-tags such as -FileName, -Directory, -SymLink, and -HardLink. This is a bypass of the incomplete key-sanitization fix introduced in v8.30.1. An unauthenticated attacker can rename or move any PDF being processed to an arbitrary path in the container filesystem, overwrite arbitrary files, or create symlinks and hard links at arbitrary paths.","provenance":"source","from":"CVE.org"},"summary":null,"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02258,"percentile":0.83395,"date":"2026-11-20","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2026-10-27","exploitedFirstSeen":null,"ransomware":false,"evidence":[],"evidenceTotal":0,"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 14, 2026 | Part 1/2","url":"https://otx.alienvault.com/pulse/6a0487a01a4a82d9d068e332","created":"2026-05-13"},{"name":"Known_Cve | May 13, 2026 | Part 1/2","url":"https://otx.alienvault.com/pulse/6a033614c2ffc68639c724b6","created":"2026-05-12"},{"name":"Known_Cve | May 12, 2026","url":"https://otx.alienvault.com/pulse/6a01e46d5f244e70404ff2c4","created":"2026-05-11"},{"name":"Known_Cve | May 11, 2026","url":"https://otx.alienvault.com/pulse/6a0092f454354dab01de3bef","created":"2026-05-10"},{"name":"Known_Cve | May 10, 2026","url":"https://otx.alienvault.com/pulse/69ff4160e930613f7b38fcf5","created":"2026-05-09"},{"name":"Known_Cve | May 9, 2026","url":"https://otx.alienvault.com/pulse/69fdf011c783e0baada3fcd1","created":"2026-05-08"},{"name":"Known_Cve | May 8, 2026","url":"https://otx.alienvault.com/pulse/69fc9ec9766595ae8bb6d07c","created":"2026-05-07"}],"provenance":"machine"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"}],"references":[{"url":"https://github.com/gotenberg/gotenberg/security/advisories/GHSA-q7r4-hc83-hf2q","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gotenberg/gotenberg/commit/405f1069c026bb08f319fb5a44e5c67c33208318","tags":["x_refsource_MISC"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Go","package":"github.com/gotenberg/gotenberg/v8","vulnerableRanges":["<8.31.0"],"patched":["8.31.0"],"from":["GHSA-q7r4-hc83-hf2q","GO-2026-5572"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/gotenberg/gotenberg/v7","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2026-5572"],"provenance":"source"}],"advisories":[{"id":"GHSA-q7r4-hc83-hf2q","url":"https://github.com/advisories/GHSA-q7r4-hc83-hf2q","severity":"CRITICAL","ecosystem":"Go","package":"github.com/gotenberg/gotenberg/v8","vulnerableRanges":["<8.31.0"],"patched":["8.31.0"],"provenance":"source","from":"GHSA"},{"id":"GO-2026-5572","url":"https://osv.dev/vulnerability/GO-2026-5572","severity":null,"ecosystem":"Go","package":"github.com/gotenberg/gotenberg/v7","vulnerableRanges":["all versions"],"patched":[],"provenance":"source","from":"OSV"}],"euvd":{"id":"EUVD-2026-28214","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-28214","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":2,"skipped":0,"earliest":"2026-10-01","earliestUrl":"https://github.com/0xgh057r3c0n/CVE-2026-40281","repos":[{"name":"0xgh057r3c0n/CVE-2026-40281","url":"https://github.com/0xgh057r3c0n/CVE-2026-40281","stars":0,"created":"2026-10-01"},{"name":"rabakuku/CVE-2026-40281","url":"https://github.com/rabakuku/CVE-2026-40281","stars":0,"created":"2026-10-05"}]},"nuclei":[{"id":"CVE-2026-40281","name":"Gotenberg <= 8.30.1 - Remote Code Execution","severity":"critical","path":"http/cves/2026/CVE-2026-40281.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-40281.yaml"}],"first":{"date":"2026-10-01","source":"PoC-in-GitHub","url":"https://github.com/0xgh057r3c0n/CVE-2026-40281"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2026-05-06","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2026-40281","provenance":"source"},{"date":"2026-10-01","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/0xgh057r3c0n/CVE-2026-40281","provenance":"source"}],"speed":{"daysToPublicExploit":148,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":75.9,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":10.0,"detail":"added 25 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":16.68,"detail":"percentile 0.8339"},{"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":7.0,"detail":"base score 10"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"packageHistory":[{"cve":"CVE-2026-35458","published":"2026-04-07","fixed":"8.30.0","kev":false,"link":{"from":"CVE-2026-35458","to":"CVE-2026-40281","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/gotenberg/gotenberg/v8","fromFixed":"8.30.0","toFixed":"8.31.0","daysApart":29}]}},{"cve":"CVE-2026-39383","published":"2026-05-05","fixed":"8.31.0","kev":false},{"cve":"CVE-2026-40280","published":"2026-05-05","fixed":"8.31.0","kev":false},{"cve":"CVE-2026-40281","published":"2026-05-06","fixed":"8.31.0","kev":false},{"cve":"CVE-2026-42594","published":"2026-05-14","fixed":"8.32.0","kev":false},{"cve":"CVE-2026-42595","published":"2026-05-14","fixed":"8.32.0","kev":false},{"cve":"CVE-2026-42596","published":"2026-05-14","fixed":"8.32.0","kev":false}],"package":"Go:github.com/gotenberg/gotenberg/v8"}}