Time-of-check Time-of-use (TOCTOU) Race Condition in gotenberg - CVE-2026-42592

 

Time-of-check Time-of-use (TOCTOU) Race Condition in gotenberg - CVE-2026-42592

Published: May 5, 2026


Vulnerability identifier: #VU129634
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2026-42592
CWE-ID: CWE-367
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: thecodingmachine
Affected software:
gotenberg

Detailed vulnerability description

The vulnerability allows a remote attacker to disclose sensitive information from internal services.

The vulnerability exists due to a time-of-check time-of-use race condition in Chromium URL conversion routes when processing attacker-supplied URLs with DNS resolution performed multiple times. A remote attacker can supply a hostname under attacker-controlled DNS that rebinds from a public IP to a private IP to disclose sensitive information from internal services.

The issue can expose responses from loopback-bound services, cloud metadata endpoints, and other private-network addresses through returned PDF output.


How to mitigate CVE-2026-42592

Install security update from vendor's website.

Sources