Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/gotenberg/gotenberg/v8
  4. ›
  5. CVE-2026-42593

CVE-2026-42593: Gotenberg has arbitrary PDF read via stampExpression and watermarkExpression in merge, split, and convert routes

May 7, 2026 (updated May 14, 2026)

Six conversion routes (pdfengines/merge, pdfengines/split, libreoffice/convert, chromium/convert/url, chromium/convert/html, chromium/convert/markdown) accept stampSource=pdf + stampExpression=/path and watermarkSource=pdf + watermarkExpression=/path from anonymous callers. The dedicated stamp/watermark routes require an uploaded file when the source type is image or pdf; these six routes only overwrite the expression when a file is uploaded, leaving the user-controlled path intact when no file is attached. pdfcpu opens the path and composites its pages onto the output PDF, which returns to the caller. An attacker reads any PDF the Gotenberg process can access on the container filesystem.

References

  • github.com/advisories/GHSA-3cv5-q585-h563
  • github.com/gotenberg/gotenberg/security/advisories/GHSA-3cv5-q585-h563
  • nvd.nist.gov/vuln/detail/CVE-2026-42593

Code Behaviors & Features

Detect and mitigate CVE-2026-42593 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 8.31.0

Solution

Unfortunately, there is no solution available yet.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-73: External Control of File Name or Path

Source file

go/github.com/gotenberg/gotenberg/v8/CVE-2026-42593.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 07 Jun 2026 12:18:26 +0000.