CVE-2026-40281: Gotenberg vulnerable to argument injection via newlines in ExifTool metadata values
Vulnerability summary
CVE-2026-40281 is a critical (CVSS 10.0) vulnerability in gotenberg. EPSS estimates a 2.26% chance of exploitation in the next 30 days, higher than 82.9% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 06-05-2026PublishedVulnerability first disclosed.
- 07-05-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · GoEcosystem advisory · calculated10.0CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:H
- NVDNIST9.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:HDiffers
EPSS trend
Probability
2.26%
Chance of exploitation in the next 30 days
Percentile
83%
Versus all other CVEs
30-day change
Increase +0.16 pp
From 2.09% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundGotenberg
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Github.com/gotenberg/gotenberg2 products
- v7All versions (No fix recorded)
- v8< 8.31.0
Gotenberg1 product
- gotenberg≤ 8.30.1
Thecodingmachine1 product
- gotenberg< 8.31.0
3 vendors · 4 products
References
5 links- github.com/gotenberg/gotenberg/security/advisories/GHSA-q7r4-hc83-hf2qX Refsource CONFIRMWEBAdvisoryExploitPatchVendor Advisory
- github.com/gotenberg/gotenberg/commit/405f1069c026bb08f319fb5a44e5c67c33208318X Refsource MISCWEBPatch