---
id: CVE-2026-103008
title: >-
  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
summary: >-
  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.
  Elasticsearc…
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-674
vendor: Elastic
product: Elasticsearch
affected:
  - Elasticsearch >= 8.12.0 <= 8.19.22
  - Elasticsearch >= 9.0.0 <= 9.4.7
  - Elasticsearch >= 9.5.0 <= 9.5.4
published: '2026-10-06'
updated: '2026-10-06'
sourceUpdated: '2026-10-06T20:17:14.120'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-103008'
references:
  - url: >-
      https://discuss.elastic.co/t/elasticsearch-8-19-23-9-4-8-9-5-5-security-update-esa-2026-198/390872
    label: security@elastic.co
tags:
  - nvd
  - cve.org
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-06T19:52:26.398877Z'
ingestedAt: '2026-10-06T20:16:42.479Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
