CVE-2024-37280: Elasticsearch Elasticsearch StackOverflow Vulnerability Vulnerability
MODERATECVE-2024-37280 is a MODERATE (CVSS 4.9) elasticsearch stackoverflow vulnerability vulnerability (CWE-122: Heap-based Buffer Overflow) affecting Elasticsearch libraries in the Maven ecosystem. The issue involves elasticsearch stackoverflow vulnerability. Remediation is available by upgrading affected packages to version 8.14.0.
CVE-2024-37280 at a Glance
Security Impact
CVSS: 4.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2024-37280
To remediate this vulnerability, upgrade all affected Elasticsearch dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch</artifactId>
<version>8.14.0</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.elasticsearch
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2024-37280, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.elasticsearch
Analyze the terminal output to locate any version of Elasticsearch in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.14.0), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.elasticsearch command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-122: Heap-based Buffer Overflow, where a heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc(). In Elasticsearch, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-37280 Affected Elasticsearch Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.elasticsearch:elasticsearch
|
Maven |
≥ 8.13.1
< 8.14.0
|
8.14.0
|
References
Frequently Asked Questions
What is CVE-2024-37280?
Which Elasticsearch versions are affected?
What version fixes CVE-2024-37280?
Is elasticsearch affected?
What is the CVSS score of CVE-2024-37280?
What CWE is associated with CVE-2024-37280?
How can I check Maven dependencies for CVE-2024-37280?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4q22-422g-m4pj",
"modified" : "2024-10-03T21:56:24Z",
"published" : "2024-06-13T18:31:58Z",
"aliases" : [ "CVE-2024-37280" ],
"summary" : "Elasticsearch StackOverflow vulnerability",
"details" : "A flaw was discovered in Elasticsearch, affecting document ingestion when an index template contains a dynamic field mapping of “passthrough” type. Under certain circumstances, ingesting documents in this index would cause a StackOverflow exception to be thrown and ultimately lead to a Denial of Service. Note that passthrough fields is an experimental feature.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.elasticsearch:elasticsearch"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.13.1"
}, {
"fixed" : "8.14.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-37280"
}, {
"type" : "WEB",
"url" : "https://discuss.elastic.co/t/elasticsearch-8-14-0-security-update-esa-2024-14/361007"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/elastic/elasticsearch"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-122", "CWE-787" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-06-13T22:03:51Z",
"nvd_published_at" : "2024-06-13T17:15:50Z"
}
}