---
id: CVE-2026-103006
title: >-
  Uncontrolled Recursion (CWE-674) in Elasticsearch can lead to Denial of
  Service via a specially crafted, deeply nested request submitted to the
  aggregation feature of the search API
summary: >-
  Uncontrolled Recursion (CWE-674) in Elasticsearch can lead to Denial of
  Service via a specially crafted, deeply nested request submitted to the
  aggregation feature of the search API. Elasticsearch contains an uncontrolled
  recursion weakn…
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.0.0, < 8.19.21'
  - 'elasticsearch >= 9.0.0, < 9.4.6'
  - 'elasticsearch >= 9.5.0, < 9.5.2'
patched:
  - elasticsearch 9.5.2
published: '2026-10-06'
updated: '2026-10-09'
sourceUpdated: '2026-10-09T13:26:04.043'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-103006'
references:
  - url: >-
      https://discuss.elastic.co/t/elasticsearch-8-19-21-9-4-6-9-5-2-security-update-esa-2026-196/390870
    label: security@elastic.co
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-103006.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-103006'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-103006'
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
epss: 0.0041
epssPercentile: 0.35048
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-06T19:53:13.913756Z'
ingestedAt: '2026-10-06T20:16:42.479Z'
---

## Overview

Uncontrolled Recursion (CWE-674) in Elasticsearch can lead to Denial of Service via a specially crafted, deeply nested request submitted to the aggregation feature of the search API. Elasticsearch contains an uncontrolled recursion weakness in its search aggregation processing. An authenticated user with read access to a single index can submit a specially crafted request containing deeply nested aggregation definitions. Processing this request triggers unbounded recursive execution that exhausts the server process's available resources, causing the affected node to terminate. The node does not recover automatically and requires manual intervention to restore service.

## Affected

- `elasticsearch >= 8.0.0, < 8.19.21`
- `elasticsearch >= 9.0.0, < 9.4.6`
- `elasticsearch >= 9.5.0, < 9.5.2`

## Remediation

Upgrade past the affected range:

- `elasticsearch 9.5.2`

## Vendor advisories

- **Red Hat VEX** · updated 2026-10-06 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-103006.json)
