# CVE-2026-133981: Elasticsearch Unreachable Exit Condition ('Infinite Loop') Vulnerability

> A low-privileged user can send a malformed compressed payload to an Elasticsearch API endpoint, causing an infinite loop that exhausts the node.

- **Severity:** Medium 6.5 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Harmful if only installed:** No
- **Needs a specific call:** No
- **Fix available:** No
- **Published:** 23 Nov 2026
- **Updated:** 24 Nov 2026
- **Also known as:** AZL-116017, GHSA-2cmv-m984-q7f4

## What is CVE-2026-133981?

CVE-2026-133981 is a medium-severity denial of service vulnerability in Elastic Elasticsearch, published on 23 Nov 2026. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

An issue was discovered in Elasticsearch where specially crafted compressed payloads can cause an infinite loop. A low-privileged authenticated user can submit a malformed payload to a product API endpoint that causes the node to enter a permanent CPU loop, occupying a request-processing thread indefinitely. This can progressively exhaust the node's processing capacity, degrading or denying access to product features, and requiring a restart of the affected node to recover.

Weakness: CWE-835 (Loop with Unreachable Exit Condition)

## Which versions are affected by CVE-2026-133981?

3 open source packages ship an affected version, including elastic/elasticsearch. It affects 1 product.

An affected version is exposed as installed. No special setting or call is needed.


| Package | Ecosystem | PURL | Affected | Fixed in |
| --- | --- | --- | --- | --- |
| `elastic/elasticsearch` | generic | `pkg:generic/elastic/elasticsearch` | From 8.0.0 to 8.19.25 | None |
| `elastic/elasticsearch` | generic | `pkg:generic/elastic/elasticsearch` | From 9.0.0 to 9.4.9 | None |
| `elastic/elasticsearch` | generic | `pkg:generic/elastic/elasticsearch` | From 9.5.0 to 9.5.6 | None |

Products: Elastic Elasticsearch.

CPE match criteria (CPE 2.3):

- `cpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:*` from 8.0.0 up to 8.19.26
- `cpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:*` from 9.0.0 up to 9.4.9
- `cpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:*` from 9.5.0 up to 9.5.6

Status by vendor (upstream, then each distribution release and vendor build):

| Who | Release | Status | Packages | Fixed in |
| --- | --- | --- | --- | --- |
| Upstream |  | affected | `elastic:elasticsearch` |  |

## How do I fix CVE-2026-133981?

No fix has been published for CVE-2026-133981 yet. Limit exposure of the affected software until one is available.

## Is CVE-2026-133981 being exploited?

There is no known exploitation of CVE-2026-133981 in the wild and no public exploit code.

## Other vulnerabilities in Elastic Elasticsearch

- [CVE-2015-1427](https://insights.sbomify.com/CVE-2015-1427/): Elasticsearch Groovy Scripting Engine Remote Code Execution (critical 9.8, exploited in the wild)
- [CVE-2014-3120](https://insights.sbomify.com/CVE-2014-3120/): Elasticsearch Remote Code Execution (high 8.1, exploited in the wild)
- [CVE-2015-5377](https://insights.sbomify.com/CVE-2015-5377/): Code injection in elastic:elasticsearch (critical 9.8)
- [CVE-2026-72649](https://insights.sbomify.com/CVE-2026-72649/): Deserialization of Untrusted Data in Elasticsearch Leading to Remote Code Execution (high 8.8)
- [CVE-2026-72642](https://insights.sbomify.com/CVE-2026-72642/): Use of Out-of-range Pointer Offset in the Elasticsearch Machine Learning Native Inference Process (high 8.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-133981 and fix it if it is affected.

What it is: CVE-2026-133981 is a medium-severity denial of service vulnerability in Elastic Elasticsearch, published on 23 Nov 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-133981 in the wild and no public exploit code.
Exposure: An affected version is exposed as installed. No special setting or call is needed.

Affected packages and fixed versions:
- elastic/elasticsearch (generic): affected from 8.0.0 up to 8.19.25; no fix listed
- elastic/elasticsearch (generic): affected from 9.0.0 up to 9.4.9; no fix listed
- elastic/elasticsearch (generic): affected from 9.5.0 up to 9.5.6; no fix listed

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-133981/ (Markdown: https://insights.sbomify.com/CVE-2026-133981/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-133981
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-133981
- OSV: https://osv.dev/vulnerability/CVE-2026-133981

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-133981/
Summaries are generated and may contain mistakes; the official description above is the record.
