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

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 25% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-07T00:59:50.000Z
- Modified: 2026-11-24T17:15:05.154Z
- Also known as: GHSA-3cv5-q585-h563, GO-2026-5080
- Weaknesses: CWE-22, CWE-73
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- gotenberg gotenberg: < 8.32.0
- github.com/gotenberg/gotenberg/v8 (Go): up to 8.31.0; before 8.32.0
- thecodingmachine gotenberg: before 8.32.0

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://github.com/gotenberg/gotenberg/security/advisories/GHSA-3cv5-q585-h563> (exploit, advisory, mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42593> (advisory)
- <https://github.com/gotenberg/gotenberg> (package)
- <https://github.com/gotenberg/gotenberg/releases/tag/v8.32.0> (web)

## Sources

- CVE List: [CVE-2026-42593](https://www.cve.org/CVERecord?id=CVE-2026-42593), CVE Terms of Use, modified 2026-05-14
- GitHub Advisory Database: [GHSA-3cv5-q585-h563](https://github.com/advisories/GHSA-3cv5-q585-h563), CC-BY-4.0, modified 2026-06-25
- Go Vulnerability Database: [GO-2026-5080](https://pkg.go.dev/vuln/GO-2026-5080), CC-BY-4.0, modified 2026-11-24
- NVD: [CVE-2026-42593](https://nvd.nist.gov/vuln/detail/CVE-2026-42593), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-42593 · Whole record: https://cve.day/CVE-2026-42593.json · Rebuilt by cve.day 2026-11-25T22:59:21.719Z
