CVE-2026-40281Gotenberg Vulnerability
Gotenberg has ExifTool stdin argument injection via metadata value newlines (bypass of key sanitization fix)
Published Apr 30, 2026 · Updated Oct 21, 2026 · Also known as GHSA-q7r4-hc83-hf2q, GO-2026-5572
Key Facts
Patch immediately- CVE-2026-40281 is a critical-severity vulnerability (CVSS 9.1 v3.1) affecting Gotenberg (Thecodingmachine), github.com/gotenberg/gotenberg/v7 (go), github.com/gotenberg/gotenberg/v8 (go).
- It is exploited in the wild, listed in Industry KEV feed since Oct 27, 2026. A public exploit is reported by tracking sources, but no code link is listed yet.
- EPSS estimates a 2.3% probability of exploitation in the next 30 days.
- Fixed versions are available, including github.com/gotenberg/gotenberg/v8 8.31.0, Gotenberg 8.31.0.
- Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Scores
CVSS v3.1
9.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
EPSS (30-day exploit likelihood)
2.3%
Higher than 82.9% of all scored CVEs
Exploit maturity
Exploited (KEV)
ATLAS score
67/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Oct 27, 2026
180 days after publication
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Exploited (KEV)
Public exploit code
6
Proof-of-concept links
In-the-wild evidence
2
Reports of active use
Advisories And Exploit References
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.
Known-Exploited Catalog Listings
| Catalog | Added | Remediation due | Ransomware use |
|---|---|---|---|
| Industry KEV feed | Oct 27, 2026 | n/a | Not reported |
Affected Products
4 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| GotenbergThecodingmachine | <= 8.30.1 | 8.31.0 |
| github.com/gotenberg/gotenberg/v7go | See advisory | n/a |
| github.com/gotenberg/gotenberg/v8go | See advisory | 8.31.0 |
Patched Releases
github.com/gotenberg/gotenberg/v8
8.31.0
Gotenberg
8.31.0
Timeline
Publicly disclosed
Apr 30, 2026
Last updated
Oct 21, 2026
Added to Industry KEV feed
Oct 27, 2026
Weakness Type
- CWE-88 Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
References
- advisorycve.org · CVERecord
- advisorynvd.nist.gov · CVE-2026-40281
- advisoryGHSA advisory
- articlehttps://github.com/gotenberg/gotenberg/commit/405f1069c026bb08f319fb5a44e5c67c33208318
- articlegithub.com · v8.31.0
FAQ
Common Questions.
Gotenberg is a Docker-powered stateless API for PDF files.
Affected: Gotenberg (Thecodingmachine) versions <= 8.30.1; github.com/gotenberg/gotenberg/v7 (go); github.com/gotenberg/gotenberg/v8 (go). The full list is in the CVE brief.
It is exploited in the wild, listed in Industry KEV feed since Oct 27, 2026.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
A public exploit is reported by tracking sources, but no code link is listed yet.
Fixed versions are available, including github.com/gotenberg/gotenberg/v8 8.31.0, Gotenberg 8.31.0.
Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Is CVE-2026-40281 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo