Live Exposure Defense: From CVE to Confirmed Exposure in 12 Hours – See more

New CVE Detected

CVE-2026-87721 – Denial of Service (Query Parser ReDoS) – Gerrit Code Review 2.0.19–3.12.9, 3.13.0–3

Be the first to know when new zero-days emerge:

Summary

CVE-2026-87721 is an uncontrolled resource consumption vulnerability (CWE-400/CWE-407/CWE-834) in the ANTLR 3-based search query parser (QueryParser / Query.g) used by Gerrit Code Review. A remote, unauthenticated attacker (or any authenticated user if anonymous read access is disabled) can send a small number of specially crafted search queries to cause CPU exhaustion and permanently pin the HTTP worker thread pool, resulting in a persistent denial of service that requires a server restart to recover. The issue carries a CVSS score of 8.7 (High).

Technical details

  • Root cause: The syntactic predicates in the grammar’s conditionOr and conditionAnd rules recurse through conditionBase without memoization, causing exponential backtracking when parsing certain query strings before any capability or visibility check is performed.
  • Trigger conditions: A search query containing deeply nested parentheses is submitted to any Gerrit query evaluation endpoint.
  • Attack vector: Network-based; queries can be sent via HTTP endpoints (/changes/?q=, /accounts/?q=, /groups/?query=, /projects/?query=, /Documentation/?q=, /changes/{id}/query?expression=) or via SSH (gerrit query). Worker threads do not abort when the client disconnects, so an attacker does not need to keep the connection open.
  • Impact: Because a default httpd.maxThreads configuration is 25, as few as ~25 concurrent malicious requests can pin all available HTTP worker threads, making the Gerrit instance unresponsive to legitimate users until it is restarted.

Affected software

  • Gerrit Code Review 2.0.19 up to (but not including) 3.12.10
  • Gerrit Code Review 3.13.0 up to (but not including) 3.13.9
  • Gerrit Code Review 3.14.0 up to (but not including) 3.14.3

Severity

  • CVSS v4.0 Base Score: 8.7 (High)
  • Vector String: 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

Mitigation and recommended actions

  • Immediate: Upgrade to Gerrit Code Review 3.12.10, 3.13.9, or 3.14.3, or later, which fix the query parser recursion issue.
  • If patching is not immediately possible:
    • Restrict network access to Gerrit’s HTTP and SSH query endpoints to trusted networks or IP ranges where feasible.
    • Consider disabling anonymous read access to reduce the pool of unauthenticated attackers able to submit queries.
    • Monitor HTTP worker thread pool utilization and application logs for spikes in CPU usage or thread exhaustion correlated with unusual/complex search query patterns, and be prepared to restart the service if it becomes unresponsive.

References

Are you exposed?

Get a free report of your organization’s exposure to this CVE and threat

How IONIX’s External Exposure Management Platform Detects and Validates
Zero-Days to Shrink MTTR

1

Map your entire attack surface (continously)

IONIX uses multi-factor discovery methods, including DNS analysis, certificate mapping, metadata inspection, and more, to automatically map every internet-facing asset across your environment. This includes cloud instances, third-party platforms, shadow IT, and even forgotten infrastructure that traditional tools miss.

2

Monitor for new CVEs

Dozens of threat intel feeds using agentic technology are continuously analyzed to detect the appearance of proof-of-concept code, exploit kits, and indicators of active targeting. IONIX goes further by applying AI to proactively evaluate whether emerging vulnerabilities are likely to be exploited, even before PoCs go public.

3

Identify Potential External Exposures

Not all CVEs matter. IONIX filters vulnerabilities by asking attacker-centric questions: Can it be reached from the internet? Does it require authentication? Is it being exploited in the wild? This dramatically reduces noise and focuses teams on threats that can actually be weaponized.

4

Create Safe, Scalable Exploit Validations

IONIX transforms real-world PoCs into safe, non-intrusive test payloads that can be run in production environments without disruption. These simulations are precisely targeted to the systems that are vulnerable, ensuring rapid validation without unnecessary load.

5

Execute Exploit Validations

By combining context about software stack, versioning, exposure status, and reachability, IONIX ensures that only the right payloads are executed against the right assets, maximizing efficiency and minimizing risk.

6

Drive Fast and Actionable Remediation

Results are routed through integrations with ticketing, SOAR, and SIEM tools. Issues are written in plain language, bundled into remediation clusters, and prioritized based on asset criticality, exploitability, and blast radius. This shortens mean time to remediation (MTTR) and empowers teams to act with confidence.

Are you exposed?

Get a free report of your organization’s exposure to this CVE and threat

Subscribe to Threat Center RSS

Copy/paste the link below into your preferred RSS reader or follow these instructions to subscribe to Slack alerts.

Get Real-Time CVE Alerts to Your Email

Be the first to know when new zero-days emerge