CVE-2026-40281Thecodingmachine Gotenberg
Critical 9.1 No auth needed
Follow: this CVE · Thecodingmachine · Thecodingmachine Gotenberg We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 3.1
- 9.1
- EPSS
- —
- Auth required
- No
- Published
- May 6, 2026
- Updated
- Nov 11, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-88
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Gotenberg.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/gotenberg/gotenberg/v7 |
all |
no fixed version | — |
| Go | github.com/gotenberg/gotenberg/v8 |
< 8.31.0 |
8.31.0 |
go get github.com/gotenberg/gotenberg/v8@v8.31.0 |
| Go | github.com/gotenberg/gotenberg/v8 |
< 8.31.0 |
8.31.0 |
go get github.com/gotenberg/gotenberg/v8@v8.31.0 |
Per OSV / GitHub Advisories (GO-2026-5572, GHSA-q7r4-hc83-hf2q). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| thecodingmachine | gotenberg | < 8.31.0 |
Official advisories
- Security update for govulncheck-vulndb · SUSE · openSUSE-SU-2026:21483-1 · Jul 30, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Exploit Patch Vendor Advisory