# CVE-2023-31419: Elasticsearch StackOverflow vulnerability

- Severity: Medium 6.5 (CVSS:3.1, scored by elastic) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 75.2%, higher than 99% of CVEs (2026-12-01)
- Published: 2023-10-26T17:06:14.305Z
- Modified: 2026-09-08T08:46:15.768Z
- Also known as: GHSA-qwrx-45xf-jjf7, BIT-ELASTICSEARCH-2023-31419
- Weaknesses: CWE-121, CWE-787
- Assigned by: elastic

## 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.

(As written by CVE List.)

## Affected

- Elastic Elasticsearch: from 7.0.0 before 7.17.12; from 8.0.0 before 8.9.0; from 7.0.0 up to 7.17.12; from 8.0.0 up to 8.9.0
- org.elasticsearch:elasticsearch (Maven): from 7.0.0 before 7.17.13; from 8.0.0 before 8.9.1
- elasticsearch (Bitnami): from 7.0.0 before 7.17.13; from 8.0.0 before 8.9.1

## Every score

- elastic: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://discuss.elastic.co/t/elasticsearch-8-9-1-7-17-13-security-update/343297> (advisory, vendor-advisory, web)
- <https://www.elastic.co/community/security> (advisory, vendor-advisory, web)
- <https://security.netapp.com/advisory/ntap-20231116-0010/> (advisory, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-31419> (advisory, web)
- <https://security.netapp.com/advisory/ntap-20231116-0010> (web)

## Sources

- CVE List: [CVE-2023-31419](https://www.cve.org/CVERecord?id=CVE-2023-31419), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-qwrx-45xf-jjf7](https://github.com/advisories/GHSA-qwrx-45xf-jjf7), CC-BY-4.0, modified 2024-02-22
- NVD: [CVE-2023-31419](https://nvd.nist.gov/vuln/detail/CVE-2023-31419), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-ELASTICSEARCH-2023-31419](https://osv.dev/vulnerability/BIT-ELASTICSEARCH-2023-31419), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2023-31419 · Whole record: https://cve.day/CVE-2023-31419.json · Rebuilt by cve.day 2026-11-25T22:58:29.704Z
