CVE-2026-87721

Denial of Service via Exponential Backtracking in ANTLR Search Query Parser in Gerrit Code Review

HIGH
8.7
CVSS Score
Published: September 24, 2026 at 10:02 PM UTC
Updated: September 25, 2026 at 05:17 PM UTC
1 product affected across 1 vendorGerrit

Using Gerrit by Gerrit?

Get instant alerts when new vulnerabilities affect Gerrit - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.7
Exploit prediction
EPSS 0.3%
SSVC
PoC

Description

Uncontrolled Resource Consumption (CWE-400 / CWE-407) in the ANTLR 3 search query parser (QueryParser / Query.g) in Gerrit Code Review versions 2.0.19 through 3.12.9, 3.13.0 through 3.13.8, and 3.14.0 through 3.14.2 allows an unauthenticated remote attacker (or an authenticated user if anonymous read access is disabled) to cause a persistent denial of service (CPU exhaustion and HTTP worker thread pool starvation requiring a server restart) via crafted search queries containing deeply nested parentheses sent to query evaluation endpoints (/changes/?q=, /accounts/?q=, /groups/?query=, /projects/?query=, /Documentation/?q=, /changes/{id}/query?expression=, or SSH gerrit query). Because syntactic predicates in conditionOr and conditionAnd recurse via conditionBase without memoization prior to capability or visibility checks and worker threads do not abort when the client disconnects, a small number of requests (such as 25 requests matching default httpd.maxThreads) can permanently pin all HTTP worker threads. This issue is fixed in Gerrit Code Review versions 3.12.10, 3.13.9, and 3.14.3.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.0.19 ≤ v < 3.12.103.13.0 ≤ v < 3.13.93.14.0 ≤ v < 3.14.32.0.193.13.03.14.0
Affected range stops below 3.12.10, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.13.9, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.14.3, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

SSVC — Action Prioritization

SSVCPoCAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

8.7HIGHGoogle
Vector?

Quick Info

StatusAWAITING ANALYSIS
CWE
CWE-400CWE-407CWE-834

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card