CVE-2023-31419: Elasticsearch StackOverflow vulnerability

CVE-2023-31419 affects 94 listed versions of Elasticsearch, OpenSearch in the Dawnsentry catalogue.

7.5CVSS high
None knownexploitation
75%EPSS (next 30 days)
26 October 2023published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

Elasticsearch

76 of 250 listed versions are affected. Fixed in 8.9.1, 7.17.13. The newest release, 9.5.7, is not affected.

8.9.0 8.8.2 8.8.1 8.8.0 8.7.1 8.7.0 8.6.2 8.6.1 8.6.0 8.5.3 8.5.2 8.5.1 8.5.0 8.4.3 8.4.2 8.4.1 8.4.0 8.3.3 8.3.2 8.3.1 8.3.0 8.2.3 8.2.2 8.2.1 8.2.0 8.1.3 8.1.2 8.1.1 8.1.0 8.0.1 8.0.0 7.16.3 7.16.2 7.16.1 7.16.0 7.15.2 7.15.1 7.15.0 7.14.2 7.14.1 7.14.0 7.13.4 7.13.3 7.13.2 7.13.1 7.13.0 7.12.1 7.12.0 7.11.2 7.11.1 7.11.0 7.10.2 7.10.1 7.10.0 7.9.3 7.9.2 7.9.1 7.9.0 7.8.1 7.8.0 and 16 more

OpenSearch

18 of 71 listed versions are affected. Fixed in 2.11.1.0, 1.3.14.0. The newest release, 3.10.1, is not affected.

2.11.0.0 2.11.0 1.3.13 1.3.10 1.3.9 1.3.8 1.3.7 1.3.6 1.3.5 1.3.4 1.3.1 1.2.4 1.2.3 1.2.2 1.2.1 1.2.0 1.1.0 1.0.0

What it is

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (NVD)

Published by Elastic on 26 October 2023. Last changed 17 June 2026.

Sources

Check one version you run: look CVE-2023-31419 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.