{"id":"CVE-2026-42590","aliases":["CVE-2026-42590","GHSA-7v3r-m9c8-r855","GO-2026-5234"],"related":[],"kind":"vulnerability","state":"published","title":"Gotenberg: ExifTool group-prefix syntax bypasses dangerous-tag blocklist","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"**Summary**\n\nThe 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.\n\n**Details**\n\nThe 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.\n\nThe `safeKeyPattern` regex (`^[a-zA-Z0-9\\-_.:]+$`) allows colons, so prefixed tag names pass validation. Any prefix works: `File:FileName`, `System:Directory`, `a:HardLink`, etc.\n\nAdditionally, `FilePermissions`, `FileUserID`, and `FileGroupID` pseudo-tags are not blocked at all and can modify file attributes without any prefix.\n\n**PoC**\n\n```bash\n# Rename the converted PDF (bypasses FileName blocklist)\ncurl -F \"files=@test.pdf\" \\\n  -F 'metadata={\"File:FileName\":\"pwned.pdf\"}' \\\n  http://localhost:3000/forms/pdfengines/metadata/write\n\n# Move the file to /tmp (bypasses Directory blocklist)\ncurl -F \"files=@test.pdf\" \\\n  -F 'metadata={\"File:Directory\":\"/tmp\"}' \\\n  http://localhost:3000/forms/pdfengines/metadata/write\n\n# Create a symlink (bypasses SymLink blocklist)\ncurl -F \"files=@test.pdf\" \\\n  -F 'metadata={\"File:SymLink\":\"/tmp/symlink-poc\"}' \\\n  http://localhost:3000/forms/pdfengines/metadata/write\n\n# Change file permissions (not blocked at all)\ncurl -F \"files=@test.pdf\" \\\n  -F 'metadata={\"FilePermissions\":\"rwxrwxrwx\"}' \\\n  http://localhost:3000/forms/pdfengines/metadata/write\n```\n\n**Impact**\n\nPre-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.\n\nThis is a direct bypass of the fix for GHSA-qmwh-9m9c-h36m.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Gotenberg's ExifTool group-prefix syntax bypasses dangerous-tag blocklist in github.com/gotenberg/gotenberg","format":"markdown","source":"go"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-05-07T00:55:44.000Z","modified":"2026-11-24T17:15:05.275Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L","score":8.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L","score":8.2,"rating":"HIGH"}],"cwes":["CWE-184"],"affected":[{"ranges":[{"version":"< 8.30.0","status":"affected"}],"vendor":"gotenberg","product":"gotenberg","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"8.29.1"}],"ecosystem":"Go","package":"github.com/gotenberg/gotenberg/v8","purl":"pkg:golang/github.com/gotenberg/gotenberg/v8","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"8.30.0"}],"ecosystem":"Go","package":"github.com/gotenberg/gotenberg/v8","purl":"pkg:golang/github.com/gotenberg/gotenberg/v8","source":"go"},{"ranges":[{"status":"affected","fixed":"8.30.0"}],"vendor":"thecodingmachine","product":"gotenberg","cpe":"cpe:2.3:a:thecodingmachine:gotenberg:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/gotenberg/gotenberg/security/advisories/GHSA-7v3r-m9c8-r855","tags":["advisory","exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42590","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-qmwh-9m9c-h36m","tags":["advisory","web"],"sources":["ghsa","go"]},{"url":"https://github.com/gotenberg/gotenberg","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/gotenberg/gotenberg/releases/tag/v8.30.0","tags":["web"],"sources":["go"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-05-15T15:57:03.096Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42590","url":"https://www.cve.org/CVERecord?id=CVE-2026-42590","licence":"CVE Terms of Use","modified":"2026-05-15T15:57:55.433Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7v3r-m9c8-r855","url":"https://github.com/advisories/GHSA-7v3r-m9c8-r855","licence":"CC-BY-4.0","modified":"2026-07-21T13:51:55.000Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5234","url":"https://pkg.go.dev/vuln/GO-2026-5234","licence":"CC-BY-4.0","modified":"2026-11-24T17:15:05.275Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42590","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42590","licence":"Public domain","modified":"2026-11-11T20:10:00.273Z"}],"updatedAt":"2026-11-25T22:59:21.717Z","epss":{"score":0.0029,"percentile":0.23249,"date":"2026-12-01T12:00:22.000Z"}}