7.8high
Gotenberg: Chromium deny-list bypass via case-insensitive URL scheme
- Severity
- 7.8high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 1.84% (higher than 79% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-jjwv-57xh-xr6rGO-2026-4905
Description
Gotenberg is an API for converting document formats. Prior to version 8.29.0, the fix introduced for CVE-2024-21527 can be bypassed using mixed-case or uppercase URL schemes. This issue has been patched in version 8.29.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| gotenberg gotenberg | < 8.29.0 | CVE List |
| github.com/gotenberg/gotenberg/v8 (Go) | before 8.29.0 | GitHub Advisory Database, Go Vulnerability Database |
| github.com/gotenberg/gotenberg/v7 (Go) | up to 7.10.2, all versions | GitHub Advisory Database, Go Vulnerability Database |
| thecodingmachine gotenberg | before 8.29.0 | NVD |
All scores
| GitHub_M | 7.8high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:P |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:P |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Classification
What each source says
CVE List
Gotenberg is an API for converting document formats. Prior to version 8.29.0, the fix introduced for CVE-2024-21527 can be bypassed using mixed-case or uppercase URL schemes. This issue has been patched in version 8.29.0.
GitHub Advisory Database
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 'files=@index.html' -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.
Go Vulnerability Database
Gotenberg has Chromium deny-list bypass via case-insensitive URL scheme (bypass of GHSA-rh2x-ccvw-q7r3) in github.com/gotenberg/gotenberg
NVD (es)
Gotenberg es una API para convertir formatos de documentos. Antes de la versión 8.29.0, la corrección introducida para CVE-2024-21527 puede ser eludida utilizando esquemas de URL en mayúsculas y minúsculas o en mayúsculas. Este problema ha sido parcheado en la versión 8.29.0.
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-27018 changed 2026-03-31 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-jjwv-57xh-xr6r changed 2026-07-08 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-4905 changed 2026-04-02 | CC-BY-4.0 |
| NVD | CVE-2026-27018 changed 2026-06-17 | Public domain |