Vulnerability in Gotenberg
CVE-2026-40281
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 10.0 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:H.
EPSS exploit prediction
EPSS 0.023, 83.3th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Gotenberg — versions <= 8.30.1
- Thecodingmachine Gotenberg
Weakness classification (CWE)
Public exploits and proof-of-concept code
5 public repositories with exploit or proof-of-concept code for this CVE:
- MRdark-ops/CVE-2026-40281-exploit (4 stars, last pushed 2026-10-04): Gotenberg 8.30.1 unauthenticated RCE exploit
- piecar21/CVE-2026-40281 (last pushed 2026-10-27): PoC / exploit archive for CVE-2026-40281
- rabakuku/CVE-2026-40281 (last pushed 2026-10-05): A Working PoC For CVE-2026-40281
- 0xgh057r3c0n/CVE-2026-40281 (last pushed 2026-10-01): Gotenberg <= 8.30.1 unauthenticated RCE
- ByteWraith1/CVE-2026-40281 (last pushed 2026-05-07)
References
- github.com/gotenberg/gotenberg/security/advisories/GHSA-q7r4-hc83-hf2q (Exploit, Patch, Vendor Advisory)
- github.com/gotenberg/gotenberg/commit/405f1069c026bb08f319fb5a44e5c67c33208318 (Patch)
This CVE has public exploit evidence. See the latest CVEs with public exploits.