1. Home
  2. Vulnerabilities
  3. CVE-2026-42589

CVE-2026-42589

Gotenberg is a Docker-powered stateless API for PDF files. Prior to 8.31.0, Gotenberg's…

Published 14 May 2026 · modified 11 Nov 2026 · Sources: NVD, CNA (vendor or assigner), CERT-FR, EPSS (FIRST)

High 72/100

Summary

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.

Affected products and versions

Go (1 line(s))
Go
ProductVersionsFixed inSource
github.com/gotenberg/gotenberg/v8 before 8.31.0 (excluded) 8.31.0 OSV
Thecodingmachine (1 line(s))
Thecodingmachine
ProductVersionsFixed inSource
Gotenberg before 8.31.0 (excluded) — NVD

Fix

Upgrade — Go/github.com/gotenberg/gotenberg/v8 8.31.0official source

Source : OSV

Workaround

No workaround provided.

Check whether you are affected

Gotenberg - Command Injectionofficial source

Nuclei template

nuclei -u https://VOTRE-HOTE -t http/cves/2026/CVE-2026-42589.yaml

Source : Open

Timeline

  1. — CVE published (cve)
  2. — Nuclei detection template (nuclei) date first seen

CERT-FR advisories

References

Data provenance

Status
NVD
Publication date
NVD
Description
NVD
CVSS score
CNA (vendor or assigner)
Weakness (CWE)
CNA (vendor or assigner)
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (CVSS 3.1, CNA:security-advisories@github.com)
Weakness
CWE-78 · Injection de commandes / code

How this data is obtained and calculated