⚠️

Disclaimer & Liability

The content provided on this website is for educational, research, and security awareness purposes only. Any unauthorized, illegal, or abusive use of the information, tools, and techniques discussed is solely the responsibility of the user. The author and publisher assume no liability for any damages, injuries, or consequences resulting from the misuse of this content.

CVE-2026-119150: Authenticated Query Triggers Stack-Exhausting Recursion in Elasticsearch | Alireza Bolbolabadi - Red Team Security
LOADING

CVE-2026-119150: Authenticated Query Triggers Stack-Exhausting Recursion in Elasticsearch

Background

Elasticsearch, the distributed search and analytics engine built on Apache Lucene, exposes query interfaces to applications and operators. Because search is a core runtime function, defects in query handling can translate quickly into availability incidents. CVE-2026-119150 describes a defect in which the parser or evaluator for a particular query shape fails to bound its recursion depth, allowing the call stack to grow until the runtime terminates the process.

The flaw was reported and added to the National Vulnerability Database with a CVSS 6.5 base score (medium). The accompanying advisory provides a clear high-level description but does not identify the affected internal component, the precise query pattern that triggers the recursion, the affected version range, or the fixed release.

Affected Systems

The advisory identifies the following characteristics of vulnerable deployments:

  • Product: Elasticsearch (vendor: Elastic)

  • Required privilege: Authenticated read access, sufficient to submit search queries

  • Trigger: A specially crafted search query sent through any interface that accepts user-influenced query input

  • Impact: Fatal error causes the Elasticsearch node process to terminate abruptly, producing a denial of service

  • Affected versions: Not specified in the available advisory text

  • Fixed version: Not specified in the available advisory text

Because the version range and fix details are absent from the source content, organizations must consult Elastic's release notes, support bulletins, and the dedicated advisory page for their installed version to determine exposure. Operators running recent 8.x and 9.x streams should review Elastic's security announcements, as query-handling defects of this class have historically appeared across multiple supported branches.

How the Defect Behaves

When Elasticsearch evaluates a certain shape of search request, an internal component recurses without a bounded depth. Each recursive frame consumes thread-stack memory, and under normal conditions the call stack would have been limited by query complexity or query-depth checks. In this case, those safeguards are absent or insufficiently applied. The thread stack fills, the runtime detects the overflow condition, and the node process is terminated rather than the request being rejected or cached.

The crash is triggered by query input alone and does not require administrative privileges. It is a resource-exhaustion and crash defect rather than a path to memory disclosure, code execution, or privilege escalation, so existing index-level data, cluster state, and other nodes remain unaffected in terms of confidentiality. The reliability and availability of the cluster, however, depend on the resilience of the deployment topology: a single terminating node can cascade into noticeable latency, lost in-flight requests, or replica rebalancing churn in smaller clusters.

Operational Considerations

Several factors shape the practical impact:

  • Authentication as a barrier. The defect requires a valid credential or API key with at least read-level search permission. Publicly exposed clusters without authentication remain the most exposed scenario; clusters scoped behind a hardened perimeter and minimal user roles are better protected.

  • Query surface area. Any feature that forwards user-controlled text into the Elasticsearch query DSL is a potential trigger: search bars, dashboards, embedded analytics, multi-tenant SaaS interfaces, ingestion pipelines that perform runtime queries, and internal tools that build requests from external data.

  • Cluster topology. A crash in a single primary node in a multi-node cluster causes a brief disruption, while a crash in a small or single-node cluster results in full outage until restart. Repeated triggering can produce sustained downtime even when individual restarts are fast.

  • Detection. Node-level stack exhaustion typically leaves a fatal error entry in the Elasticsearch logs and a process-exit record at the operating system layer. Analysts can correlate these with the originating query, identity, and API key.

  • Exploitation maturity. No public exploit, working proof-of-concept, or observed in-the-wild activity is mentioned in the advisory, so the vulnerability is currently theoretical rather than actively weaponized.

Mitigation

Because the advisory does not name a fixed version, a verbatim upgrade target cannot be stated. Operators should proceed in this order:

  1. Confirm exposure. Compare installed Elasticsearch versions against Elastic's published advisory once the specific version list is published, and verify across every node in the cluster rather than assuming a single representative node suffices.

  1. Apply the vendor fix when available. Upgrade affected clusters to the fixed release Elastic publishes, applying the update consistently across nodes to avoid mixed-version behavior during rolling restarts.

  1. Restrict query privileges in the interim. Audit the roles, API keys, service accounts, and tenant-facing integrations permitted to submit search queries. Disable or scope down any account that does not strictly require search access.

  1. Constrain user-influenced query input. Where the application layer accepts free-form search text and forwards it into Elasticsearch, prefer a constrained query builder over raw DSL passthrough. Surface only the fields, query types, and parameter ranges the application actually supports.

  1. Harden the deployment perimeter. Confirm that the Elasticsearch HTTP layer is not exposed to the public internet without authentication, that transport-layer authentication is enforced for cross-node traffic, and that rate-limiting or request-throttling controls are configured where supported.

  1. Monitor for crashes. Alert on Elasticsearch process restarts, fatal exception entries related to stack overflow or runaway recursion, and correlated spike patterns in rejected or failed queries. Preserve stack traces and request identifiers when investigating incidents, but redact sensitive query content before sharing externally.

  1. Plan for incident response. Treat any unexplained node termination as a potential trigger of this defect until validated, and rehearse the cluster-recovery workflow so that restart-driven availability loss remains bounded.

A complete query-level workaround cannot be specified because the advisory does not disclose the malformed query shape or the offending internal component. Until the vendor fix is applied, access restriction, perimeter hardening, and crash-oriented monitoring are the principal available controls.

References

·
← News