Description
Uncontrolled Recursion (CWE-674) in Elasticsearch can lead to Denial of Service via a specially crafted request that causes the server to construct and process a deeply nested data structure with no bound on recursion depth. Elasticsearch contains an uncontrolled recursion weakness in how it builds and serializes geometry values produced by scripted runtime fields. Unlike geometry supplied as text, which is subject to a nesting-depth limit, geometry constructed from a script's output is not bounded. An authenticated user with read access to a single index can submit a request defining such a field with a script that produces a deeply nested structure. Processing this request recurses past the available stack space, causing the affected node to terminate. The node does not recover automatically on all deployments and may require manual intervention to restore service.
Published: 2026-10-06
Score: 6.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service
Action: Assess Impact
AI Analysis

Impact

Elasticsearch is vulnerable to uncontrolled recursion (CWE-674) that enables an attacker with read access to a single index to craft a scripted runtime field whose script produces a deeply nested geometry structure. When the node processes this request it recurses past the available stack space, causing a crash. The failure results in a denial of service that may persist until manual intervention restores the affected node.

Affected Systems

The flaw affects Elastic's Elasticsearch wherever script-generated geometry values are not bounded during serialization. Affected versions are not specified, but any deployment that lacks a recursion depth cap on script‑generated geometry is potentially susceptible. An attacker must have authenticated read rights to an index that allows scripted runtime fields. Elastic's official documentation does not yet specify a patch version.

Risk and Exploitability

EPSS indicates a very low probability of exploitation, less than 1%, making spontaneous attacks unlikely. The CVSS of 6.5 labels the flaw as moderate severity. The vulnerability is not recorded in CISA’s KEV catalog, suggesting no active exploitation has been observed. Attackers need authenticated read access to an index that allows scripted runtime fields, so the primary threat vector is an insider or compromised‑credential scenario. When triggered, the recursion causes a stack overflow that crashes the node; the service may stay down until a manual or automated restart restores the affected node.

Generated by OpenCVE AI on October 8, 2026 at 14:14 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Consult Elastic’s security advisory at https://discuss.elastic.co/t/elasticsearch-8-19-23-9-4-8-9-5-5-security-update-esa-2026-198/390872 for available patches and advice.
  • Apply any patch that introduces a recursion depth limit for script-generated geometry serialization when it becomes available.
  • Restrict or disable scripted runtime fields for indices that are accessible to users with read permissions, to prevent unbounded nested structures from being generated.
  • Monitor Elasticsearch logs for stack overflow or out-of-memory errors, and configure automated alerts to trigger node restarts if a crash is detected.

Generated by OpenCVE AI on October 8, 2026 at 14:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 09 Oct 2026 13:30:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:*

Thu, 08 Oct 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-770
References
Metrics threat_severity

None

threat_severity

Moderate


Wed, 07 Oct 2026 00:00:00 +0000

Type Values Removed Values Added
First Time appeared Elastic
Elastic elasticsearch
Vendors & Products Elastic
Elastic elasticsearch

Tue, 06 Oct 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 06 Oct 2026 19:45:00 +0000

Type Values Removed Values Added
Description Uncontrolled Recursion (CWE-674) in Elasticsearch can lead to Denial of Service via a specially crafted request that causes the server to construct and process a deeply nested data structure with no bound on recursion depth. Elasticsearch contains an uncontrolled recursion weakness in how it builds and serializes geometry values produced by scripted runtime fields. Unlike geometry supplied as text, which is subject to a nesting-depth limit, geometry constructed from a script's output is not bounded. An authenticated user with read access to a single index can submit a request defining such a field with a script that produces a deeply nested structure. Processing this request recurses past the available stack space, causing the affected node to terminate. The node does not recover automatically on all deployments and may require manual intervention to restore service.
Title Uncontrolled Recursion in Elasticsearch Leading to Denial of Service
Weaknesses CWE-674
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}


Subscriptions

Elastic Elasticsearch
cve-icon MITRE

Status: PUBLISHED

Assigner: elastic

Published:

Updated: 2026-10-06T19:52:34.232Z

Reserved: 2026-09-29T20:57:38.467Z

Link: CVE-2026-103008

cve-icon Vulnrichment

Updated: 2026-10-06T19:52:31.030Z

cve-icon NVD

Status : Analyzed

Published: 2026-10-06T20:17:14.120

Modified: 2026-10-09T13:21:34.313

Link: CVE-2026-103008

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-06T19:31:51Z

Links: CVE-2026-103008 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-08T14:15:15Z

Weaknesses
  • CWE-674

    Uncontrolled Recursion

  • CWE-770

    Allocation of Resources Without Limits or Throttling