CVE-2026-40281
CRITICAL 9.1CVSS 3.1Gotenberg has ExifTool stdin argument injection via metadata value newlines (bypass of key sanitization fix)
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
- 6 May 2026
- Last modified
- 11 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-88
- Also known as
- GHSA-q7r4-hc83-hf2qGO-2026-5572
- Sources
- NVDJSONOSV GHSA-q7r4-hc83-hf2qJSONOSV GO-2026-5572JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | thecodingmachine | gotenbergcpe:2.3:a:thecodingmachine:gotenberg:*:*:*:*:*:*:*:* |
< 8.31.0 | 8.31.0 |
| OSV | Go | github.com/gotenberg/gotenberg/v8 | < 8.31.0 | 8.31.0 |
| OSV | Go | github.com/gotenberg/gotenberg/v7 | all versions |
References
- https://github.com/gotenberg/gotenberg/commit/405f1069c026bb08f319fb5a44e5c67c33208318 · Patch, WEB
- https://github.com/gotenberg/gotenberg/security/advisories/GHSA-q7r4-hc83-hf2q · Exploit, Patch, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-40281 · ADVISORY
- https://github.com/gotenberg/gotenberg · PACKAGE
- https://github.com/gotenberg/gotenberg/releases/tag/v8.31.0 · WEB
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 6 May 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Jun 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 30 Apr 2026)