Live threats

All CVEs / Thecodingmachine

CVE-2026-42589Thecodingmachine Gotenberg

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
—
Auth required
No
Published
May 14, 2026
Updated
Nov 11, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-78
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

Gotenberg is a Docker-powered stateless API for PDF files. Prior to 8.31.0, Gotenberg's /forms/pdfengines/metadata/write HTTP endpoint accepts a JSON metadata object and passes its keys directly to ExifTool via the go-exiftool library. No validation is performed on key characters. A \n embedded in a JSON key splits the ExifTool stdin stream into a new argument line, allowing an attacker to inject arbitrary ExifTool flags — including -if, which evaluates Perl expressions. This achieves unauthenticated OS command execution in a single HTTP request. The response is HTTP 200 with a valid PDF, making the attack transparent to basic monitoring. This vulnerability is fixed in 8.31.0.

Original NVD text.

What to do

  1. Apply the vendor's security update for Gotenberg.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/gotenberg/gotenberg/v8 8.29.1 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

Per OSV / GitHub Advisories (GHSA-rqgh-gxv4-6657, GO-2026-5636). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
thecodingmachinegotenberg< 8.31.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.