Inefficient regular expression complexity in gotenberg - CVE-2026-35458

 

Inefficient regular expression complexity in gotenberg - CVE-2026-35458

Published: April 8, 2026


Vulnerability identifier: #VU125317
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2026-35458
CWE-ID: CWE-1333
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 cause a denial of service.

The vulnerability exists due to inefficient regular expression complexity in the extraHttpHeaders scope pattern handling in gotenberg/pkg/modules/chromium/routes.go when processing user-supplied scope patterns. A remote attacker can send a specially crafted request containing a malicious scope pattern to cause a denial of service.

Exploitation can hang a worker indefinitely through catastrophic backtracking, and affects instances where the attacker can reach the /forms/chromium/screenshot/url endpoint and specify the extraHttpHeaders field.


How to mitigate CVE-2026-35458

Install security update from vendor's website.

Sources