Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-102411 Overview
CVE-2026-102411 is a resource exhaustion vulnerability in Elasticsearch classified under [CWE-770] (Allocation of Resources Without Limits or Throttling). Elasticsearch enforces a size limit on the user-supplied metadata field for each individual template resource but does not cap the total memory consumed when multiple templates are retrieved together. An authenticated user with the manage_index_templates cluster privilege can register multiple templates within the per-resource limit and then request them in a single operation. The combined metadata materializes in memory simultaneously, exhausting the Java Virtual Machine (JVM) heap and triggering an out-of-memory condition on the affected node.
Critical Impact
An authenticated attacker with manage_index_templates privileges can crash an Elasticsearch node by requesting multiple template resources, producing a denial-of-service condition on the cluster.
Affected Products
- Elasticsearch versions prior to 9.4.7
- Elasticsearch versions prior to 9.5.3
- Elasticsearch versions prior to 8.19.23
Discovery Timeline
- 2026-10-06 - CVE-2026-102411 published to the National Vulnerability Database (NVD)
- 2026-10-07 - Last updated in NVD database
Technical Details for CVE-2026-102411
Vulnerability Analysis
Elasticsearch supports index and component templates that include a _meta field for user-supplied metadata. The product enforces a maximum byte size on this field for each individual template to prevent oversized resources. However, this per-resource limit is the only control in place. When a client issues a request that returns multiple templates together, Elasticsearch loads every template's metadata into heap memory in a single operation without applying any aggregate ceiling. An attacker who can create many templates, each sized just under the individual limit, forces the node to allocate the sum of all metadata payloads at once. The JVM exhausts available heap, throws an OutOfMemoryError, and the node fails.
Root Cause
The root cause is incomplete resource accounting. The per-template validation prevents a single oversized object, but no logic tracks cumulative allocation across templates returned in bulk responses. This matches the [CWE-770] pattern of enforcing boundaries on individual elements while ignoring the aggregate.
Attack Vector
The attacker must hold the manage_index_templates cluster privilege. With that privilege, the attacker registers multiple templates whose _meta fields each fall within the per-resource limit. The attacker then issues a bulk retrieval request that returns all templates in a single response. The node allocates heap for every metadata payload simultaneously and terminates with an out-of-memory error. The attack requires network access to the Elasticsearch REST API and valid credentials with the specific cluster privilege.
See the Elastic Discuss Security Update for vendor technical details.
Detection Methods for CVE-2026-102411
Indicators of Compromise
- Elasticsearch node logs containing java.lang.OutOfMemoryError: Java heap space entries correlated with template retrieval endpoints such as _index_template or _component_template.
- Unexpected spikes in the number of registered index or component templates authored by a single principal.
- Unplanned node restarts or cluster yellow/red state transitions following bulk template API calls.
Detection Strategies
- Audit Elasticsearch access logs for repeated calls to template management endpoints from accounts holding manage_index_templates.
- Correlate JVM heap pressure metrics with HTTP requests to GET /_index_template and GET /_component_template endpoints.
- Alert on sudden growth in the count or cumulative size of template _meta fields across the cluster.
Monitoring Recommendations
- Enable Elasticsearch audit logging and forward events to a centralized data lake for correlation.
- Track per-user API call rates against template management endpoints and establish baselines.
- Monitor JVM heap utilization and garbage collection pause duration per node to identify memory pressure early.
How to Mitigate CVE-2026-102411
Immediate Actions Required
- Upgrade Elasticsearch to version 9.4.7, 9.5.3, or 8.19.23 or later, depending on the deployed branch.
- Review all accounts assigned the manage_index_templates cluster privilege and revoke the privilege where it is not required.
- Inventory existing index and component templates and remove any whose _meta field is unusually large or unexplained.
Patch Information
Elastic addressed the issue in Elasticsearch 9.4.7, 9.5.3, and 8.19.23. See the Elastic Discuss Security Update ESA-2026-192 for release details and upgrade guidance.
Workarounds
- Restrict the manage_index_templates cluster privilege to a minimal set of administrative accounts using role-based access control.
- Place a reverse proxy or API gateway in front of Elasticsearch to rate-limit requests to template management endpoints.
- Increase JVM heap on affected nodes as a short-term buffer, understanding that this does not eliminate the underlying flaw.
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

