CVE-2026-103006: 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.
Medium CVSS 6.5
- CVE id
- CVE-2026-103006
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Elasticsearch Runtimes and servers |
>= 8.0.0, < 8.19.21 >= 9.0.0, < 9.4.6 >= 9.5.0, < 9.5.2 |
8.19.21, 9.4.6, 9.5.2 |
How to fix it
Upgrade Elasticsearch to the fixed release of the line you run: 8.19.21, 9.4.6, 9.5.2.
curl -s localhost:9200
- Upgrade Elasticsearch (the elasticsearch image tag or packages) to the patched release with a rolling restart; on Elastic Cloud, upgrade the deployment.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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.
References
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.