CVE-2026-42590
JSON

8.2high

Gotenberg: ExifTool group-prefix syntax bypasses dangerous-tag blocklist

Severity
8.2high CVSS:3.1 by GitHub_M
Exploit likelihood
0.44% (higher than 29% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-7v3r-m9c8-r855GO-2026-5234

Description

Gotenberg is a Docker-powered stateless API for PDF files. Prior to 8.30.0, The ExifTool metadata write blocklist in Gotenberg can be bypassed using ExifTool's group-prefix syntax, enabling arbitrary file rename, move, hardlink, and symlink creation on the server. ExifTool supports group-prefix syntax where File:FileName is processed identically to FileName -- the prefix is stripped by SetNewValue in Writer.pl before tag matching. The safeKeyPattern regex (^[a-zA-Z0-9\-_.:]+$) allows colons, so prefixed tag names pass validation. Any prefix works: File:FileName, System:Directory, a:HardLink, etc. Additionally, FilePermissions, FileUserID, and FileGroupID pseudo-tags are not blocked at all and can modify file attributes without any prefix. This vulnerability is fixed in 8.30.0.

Affected

Product or packageVersionsReported by
gotenberg gotenberg< 8.30.0CVE List
github.com/gotenberg/gotenberg/v8 (Go)up to 8.29.1, before 8.30.0GitHub Advisory Database, Go Vulnerability Database
thecodingmachine gotenbergbefore 8.30.0NVD

All scores

GitHub_M8.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
GitHub8.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L

Classification

CWE-184

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

Gotenberg is a Docker-powered stateless API for PDF files. Prior to 8.30.0, The ExifTool metadata write blocklist in Gotenberg can be bypassed using ExifTool's group-prefix syntax, enabling arbitrary file rename, move, hardlink, and symlink creation on the server. ExifTool supports group-prefix syntax where File:FileName is processed identically to FileName -- the prefix is stripped by SetNewValue in Writer.pl before tag matching. The safeKeyPattern regex (^[a-zA-Z0-9\-_.:]+$) allows colons, so prefixed tag names pass validation. Any prefix works: File:FileName, System:Directory, a:HardLink, etc. Additionally, FilePermissions, FileUserID, and FileGroupID pseudo-tags are not blocked at all and can modify file attributes without any prefix. This vulnerability is fixed in 8.30.0.

GitHub Advisory Database

Summary

The ExifTool metadata write blocklist in Gotenberg v8 can be bypassed using ExifTool's group-prefix syntax, enabling arbitrary file rename, move, hardlink, and symlink creation on the server. This is a bypass of the fix for GHSA-qmwh-9m9c-h36m.

Details

The blocklist in pkg/modules/exiftool/exiftool.go filters four dangerous pseudo-tags (FileName, Directory, HardLink, SymLink) using strings.EqualFold(key, tag). However, ExifTool supports group-prefix syntax where File:FileName is processed identically to FileName -- the prefix is stripped by SetNewValue in Writer.pl before tag matching.

The safeKeyPattern regex (^[a-zA-Z0-9\-_.:]+$) allows colons, so prefixed tag names pass validation. Any prefix works: File:FileName, System:Directory, a:HardLink, etc.

Additionally, FilePermissions, FileUserID, and FileGroupID pseudo-tags are not blocked at all and can modify file attributes without any prefix.

PoC

# Rename the converted PDF (bypasses FileName blocklist)
curl -F "files=@test.pdf" \
  -F 'metadata={"File:FileName":"pwned.pdf"}' \
  http://localhost:3000/forms/pdfengines/metadata/write

# Move the file to /tmp (bypasses Directory blocklist)
curl -F "files=@test.pdf" \
  -F 'metadata={"File:Directory":"/tmp"}' \
  http://localhost:3000/forms/pdfengines/metadata/write

# Create a symlink (bypasses SymLink blocklist)
curl -F "files=@test.pdf" \
  -F 'metadata={"File:SymLink":"/tmp/symlink-poc"}' \
  http://localhost:3000/forms/pdfengines/metadata/write

# Change file permissions (not blocked at all)
curl -F "files=@test.pdf" \
  -F 'metadata={"FilePermissions":"rwxrwxrwx"}' \
  http://localhost:3000/forms/pdfengines/metadata/write

Impact

Pre-auth (no authentication by default). Attacker can rename, move, or create links to files within the Gotenberg container. In deployments with mounted volumes or non-containerized setups, this enables arbitrary file read via symlink chaining and file overwrite via directory manipulation.

This is a direct bypass of the fix for GHSA-qmwh-9m9c-h36m.

Go Vulnerability Database

Gotenberg's ExifTool group-prefix syntax bypasses dangerous-tag blocklist in github.com/gotenberg/gotenberg

NVD (es)

Gotenberg es una API sin estado impulsada por Docker para archivos PDF. Antes de la versión 8.30.0, la lista negra de escritura de metadatos de ExifTool en Gotenberg puede ser eludida utilizando la sintaxis de prefijo de grupo de ExifTool, lo que permite el cambio de nombre, movimiento, creación de enlaces duros (hardlink) y enlaces simbólicos (symlink) arbitrarios de archivos en el servidor. ExifTool soporta la sintaxis de prefijo de grupo donde File:FileName se procesa idénticamente a FileName -- el prefijo es eliminado por SetNewValue en Writer.pl antes de la coincidencia de etiquetas. La expresión regular safeKeyPattern (^[a-zA-Z0-9\-_.:]+$) permite dos puntos, por lo que los nombres de etiquetas con prefijo pasan la validación. Cualquier prefijo funciona: File:FileName, System:Directory, a:HardLink, etc. Además, las pseudoetiquetas FilePermissions, FileUserID y FileGroupID no están bloqueadas en absoluto y pueden modificar atributos de archivo sin ningún prefijo. Esta vulnerabilidad está corregida en la versión 8.30.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-42590 changed 2026-05-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-7v3r-m9c8-r855 changed 2026-07-21CC-BY-4.0
Go Vulnerability DatabaseGO-2026-5234 changed 2026-11-24CC-BY-4.0
NVDCVE-2026-42590 changed 2026-11-11Public domain