CVE-2026-40281: Vulnerability in Thecodingmachine Gotenberg

Critical. 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....

Go, CWE-88

Exploitation
None confirmed
Severity
10 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-q7r4-hc83-hf2q
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:H
Weakness
CWE-88
Published
30 Apr 2026
Last change
11 Nov 2026
Ecosystem
Go

Affected products

Affected versions and the first fixed release

  • Thecodingmachine Gotenberg Before 8.31.0. Fixed in 8.31.0

Affected packages

Vulnerable version ranges and fixed releases

  • github.com/gotenberg/gotenberg/v8 Go, Affected through 8.30.1. Fixed in 8.31.0

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes

Related