CVE-2026-42593·Docker vulnerability
Gotenberg is a Docker-powered stateless API for PDF files. Prior to 8.32.0, pdfengines/merge, pdfengines/split, libreoffice/convert, chromium/convert/url, chromium/convert/html, and 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. This vulnerability is fixed in 8.32.0.
- Severity
- medium
- Software
- Docker
- Fixed in
- 8.32.0
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at <0.1% — higher than 23% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
Until: 8.32.0
Fixed in: 8.32.0
How to fix this CVE
Upgrade Docker to version 8.32.0 or later to patch a local file disclosure vulnerability in Gotenberg's PDF processing endpoints. The vulnerability allows unauthenticated attackers to read arbitrary PDF files accessible to the Docker daemon by manipulating stamp and watermark parameters. This fix removes the ability to pass user-controlled file paths to pdfcpu without proper validation.
sudo dnf update docker-ce --securityDefensia detects this vulnerability
What an exploitation attempt looks like
Sample log line indicative of exploitation attempts:
POST|GET request containing parameters matching regex: (stampSource|watermarkSource)=pdf.*(stampExpression|watermarkExpression)=/[a-zA-Z0-9_/.-]+\.pdfWAF mitigation (if patching is not yet possible)
Add this rule to your WAF to block exploitation attempts while you schedule the patch.
Implement WAF rules to block HTTP requests to Gotenberg endpoints (pdfengines/merge, pdfengines/split, libreoffice/convert, chromium/convert/*) that contain stampSource, watermarkSource, stampExpression, or watermarkExpression parameters with file path patterns. Whitelist only legitimate PDF upload operations with multipart/form-data encoding.How to check if you are affected
- Step 1: Check installed Docker version with 'docker --version' and compare against 8.32.0
- Step 2: Verify Gotenberg service is running inside a Docker container with 'docker ps | grep gotenberg'
- Step 3: Search container logs for unusual stampSource, stampExpression, watermarkSource, or watermarkExpression parameters: 'docker logs <container_id> | grep -i "stamp\|watermark"'
- Step 4: After upgrading, confirm the new version with 'docker --version' and restart all containers running Gotenberg
FAQ
What is CVE-2026-42593?
This is a local file disclosure vulnerability in Docker's Gotenberg PDF processing service that allows attackers to read any PDF file accessible to the container by crafting malicious requests with unvalidated file path parameters in stamp and watermark endpoints.
Is CVE-2026-42593 being actively exploited?
No, this vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities catalog and no public exploits are available.
What versions of Docker are affected by CVE-2026-42593?
All versions of Docker containing Gotenberg prior to version 8.32.0 are affected. The vulnerability impacts the pdfengines/merge, pdfengines/split, libreoffice/convert, chromium/convert/url, chromium/convert/html, and chromium/convert/markdown endpoints.
How do I check if my server is vulnerable to CVE-2026-42593?
Run 'docker --version' and verify the version is 8.32.0 or later. Additionally, list running containers with 'docker ps' and check for any instances running Gotenberg or PDF processing services that accept external stamp/watermark parameters.
Does Defensia detect CVE-2026-42593?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Docker is installed on a monitored server, CVE-2026-42593 will appear in your dashboard with remediation steps.
Related Docker CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-42593. Free for 1 server.
Get started free