CVE-2024-52980: Elasticsearch-grok Potential Node Crash due to Large Recursion in `innerForbidCircularReferences` Function
A flaw was discovered in Elasticsearch, where a large recursion using the innerForbidCircularReferences function of the PatternBank class could cause the Elasticsearch node to crash. A successful attack requires a malicious user to have readpipeline Elasticsearch cluster privilege assigned to them.
Published Apr 8, 2025 · Updated Sep 25, 2026
Affected packages
org.elasticsearch:elasticsearch-grok
- Ecosystem
- Maven
- Affected
- >= 7.17.0, < 8.15.1
- Fixed in
- 8.15.1
- Check
mvn dependency:tree -Dincludes=org.elasticsearch:elasticsearch-grok
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
A flaw was discovered in Elasticsearch, where a large recursion using the innerForbidCircularReferences function of the PatternBank class could cause the Elasticsearch node to crash.
A successful attack requires a malicious user to have read_pipeline Elasticsearch cluster privilege assigned to them.
Credited to AnonySE26, sealonohana, levpachmanov.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-52980
- https://discuss.elastic.co/t/elasticsearch-8-15-1-security-update-esa-2024-34/376919
- https://github.com/elastic/elasticsearch/commit/4e5c6801f4d60f100f122072f6bf35b21fd722a5
- https://github.com/elastic/elasticsearch/commit/a02dc7165c75f12701f8d47a2bdefe5283735267
- https://github.com/advisories/GHSA-ghfh-p92w-j4mg
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
