CVE-2026-35458 Gotenberg has a ReDoS via extraHttpHeaders scope feature

High 8.7 Published Updated

Attackers can cause indefinite worker hangs in Gotenberg by supplying malicious regex patterns, leading to denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-35458?

CVE-2026-35458 is a high-severity denial of service vulnerability in gotenberg, published on 7 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Gotenberg is an API for converting document formats. In 8.29.1 and earlier, Gotenberg uses dlclark/regexp2 to compile user-supplied scope patterns without setting a proper timeout. Users with access to features using this logic can hang workers indefinitely.

Weakness: CWE-1333

Which versions are affected by CVE-2026-35458?

4 open source packages ship an affected version, including github.com/gotenberg/gotenberg/v8 and github.com/gotenberg/gotenberg/v7. It affects 1 product.

PackageAffectedFixed in
github.com/gotenberg/gotenberg/v8 GoAll versions8.30.0
github.com/gotenberg/gotenberg/v8 GoAll versions8.30.0
github.com/gotenberg/gotenberg/v8 GoAll versions8.30.0
github.com/gotenberg/gotenberg/v7 GoAll versionsNone

Products include Thecodingmachine Gotenberg.

How do I fix CVE-2026-35458?

Upgrade github.com/gotenberg/gotenberg/v8 to 8.30.0 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2026-35458 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-35458 exists.

Sources

Also known as GHSA-fmwg-qcqh-m992, GO-2026-5372.

Is CVE-2026-35458 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free