CVE-2026-27018: Gotenberg has Chromium deny-list bypass via case-insensitive URL scheme (bypass of GHSA-rh2x-ccvw-q7r3)
Impact The fix introduced in version 8.1.0 for GHSA-rh2x-ccvw-q7r3 (CVE-2024-21527) can be bypassed using mixed-case or uppercase URL schemes. The default --chromium-deny-list value is ^file:(?!//\/tmp/).. This regex is anchored to lowercase file: at the start. However, per RFC 3986 Section 3.1, URI schemes are case-insensitive.
Published Mar 30, 2026 · Updated Apr 6, 2026
Affected packages
github.com/gotenberg/gotenberg/v8
- Ecosystem
- Go
- Affected
- < 8.29.0
- Fixed in
- 8.29.0
- Check
go list -m github.com/gotenberg/gotenberg/v8
github.com/gotenberg/gotenberg/v7
- Ecosystem
- Go
- Affected
- <= 7.10.2
- Fixed in
- No patched version yet
- Check
go list -m github.com/gotenberg/gotenberg/v7
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
The fix introduced in version 8.1.0 for GHSA-rh2x-ccvw-q7r3 (CVE-2024-21527) can be bypassed using mixed-case or uppercase URL schemes.
The default --chromium-deny-list value is ^file:(?!//\/tmp/).*. This regex is anchored to lowercase file: at the start. However, per RFC 3986 Section 3.1, URI schemes are case-insensitive. Chromium normalizes the scheme to lowercase before navigation, so a URL like FILE:///etc/passwd or File:///etc/passwd bypasses the deny-list check but still gets resolved by Chromium as file:///etc/passwd.
The root cause is in pkg/gotenberg/filter.go — the FilterDeadline function compiles the deny-list regex with regexp2.MustCompile(denied.String(), 0), where 0 means no flags (case-sensitive). Since the regex pattern itself doesn't include a (?i) flag, matching is strictly case-sensitive.
This affects both the URL endpoint and HTML conversion (via iframes, link tags, etc.).
Steps to Reproduce
- Start Gotenberg with default settings:
docker run --rm -p 3000:3000 gotenberg/gotenberg:8.26.0 gotenberg- Read
/etc/passwdvia the URL endpoint using an uppercase scheme:
curl -X POST 'http://localhost:3000/forms/chromium/convert/url' \
--form 'url=FILE:///etc/passwd' -o output.pdf- Open
output.pdf— it contains the contents of/etc/passwd.
- Alternatively, create an
index.html:
<iframe src="FILE:///etc/passwd" width="100%" height="100%"></iframe>Then convert it:
curl -X POST 'http://localhost:3000/forms/chromium/convert/html' \
-F '[email protected]' -o output.pdf- The resulting PDF contains
/etc/passwdcontents.
Mixed-case variants like File:, fILE:, fiLE: etc. all work as well.
Root Cause
pkg/modules/chromium/chromium.godefines the default deny-list as^file:(?!//\/tmp/).*pkg/gotenberg/filter.gocompiles this withregexp2.MustCompile(denied.String(), 0)— flag0means case-sensitivepkg/modules/chromium/events.gousesFilterDeadlineto check intercepted request URLs against the deny-list- Chromium normalizes URL schemes to lowercase, so
FILE:///etc/passwdbecomesfile:///etc/passwdafter the deny-list check has already passed
Suggested Fix
Change the default deny-list regex to use a case-insensitive flag:
(?i)^file:(?!//\/tmp/).*Or apply case-insensitive matching in FilterDeadline when compiling the regex.
Severity
This is effectively the same impact as CVE-2024-21527 — unauthenticated arbitrary file read from the Gotenberg container. An attacker can leak environment variables, configuration, credentials, and other sensitive data.
Credited to q1uf3ng.
References
- https://github.com/gotenberg/gotenberg/security/advisories/GHSA-jjwv-57xh-xr6r
- https://github.com/gotenberg/gotenberg/security/advisories/GHSA-rh2x-ccvw-q7r3
- https://github.com/gotenberg/gotenberg/commit/06b2b2e10c52b58135edbfe82e94d599eb0c5a11
- https://github.com/gotenberg/gotenberg/commit/8625a4e899eb75e6fcf46d28394334c7fd79fff5
- https://github.com/gotenberg/gotenberg/releases/tag/v8.29.0
- https://nvd.nist.gov/vuln/detail/CVE-2026-27018
- https://github.com/advisories/GHSA-jjwv-57xh-xr6r
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-55229
Gotenberg: SSRF via LibreOffice document processing
high7.5Jun 18, 2026CVE-2026-44829
Gotenberg has path traversal in zip entry name via Windows-style separators in upload filename
high8.8May 29, 2026CVE-2026-45741
Gotenberg has an SSRF deny-list bypass in IsPublicIP via IPv6 6to4 / NAT64 / site-local prefixes
high7.5No fixMay 29, 2026CVE-2026-45742
Gotenberg has a Race Condition via Multipart `downloadFrom` Handling
high7.5May 29, 2026CVE-2026-42595
Gotenberg: Server-Side Request Forgery via Chromium URL Endpoint with Redirect-Based Deny-List Bypass
high8.6May 11, 2026CVE-2026-42589
Gotenberg has Unauthenticated RCE via ExifTool Metadata Key Injection
critical9.8No fixMay 7, 2026
