CVE-2019-7614: Elasticsearch Remote Code Execution Vulnerability

MODERATE
Advisory Identifier: GHSA-jqm6-m3j3-8gg9
CVSS 5.9
CWE-362
Published
Advisory Summary

CVE-2019-7614 is a MODERATE (CVSS 5.9) remote code execution vulnerability (CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')) affecting Elasticsearch libraries in the Maven ecosystem. The issue involves concurrent execution using shared resource with improper synchronization in elasticsearch. Remediation is available by upgrading affected packages to version 6.8.2, 7.2.1.

CVE-2019-7614 at a Glance

CVE Identifier CVE-2019-7614
GHSA Identifier GHSA-jqm6-m3j3-8gg9
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Affected Product Elasticsearch
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2019-7614

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.

org.elasticsearch:elasticsearch fixed: 6.8.2
<dependency>
    <groupId>org.elasticsearch</groupId>
    <artifactId>elasticsearch</artifactId>
    <version>6.8.2</version>
</dependency>
org.elasticsearch:elasticsearch fixed: 7.2.1
<dependency>
    <groupId>org.elasticsearch</groupId>
    <artifactId>elasticsearch</artifactId>
    <version>7.2.1</version>
</dependency>
Verify Direct and Transitive Dependencies

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-2019-7614, 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 6.8.2), 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-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'), where the product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently. 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

A race condition flaw was found in the response headers Elasticsearch versions before 7.2.1 and 6.8.2 returns to a request. On a system with multiple users submitting requests, it could be possible for an attacker to gain access to response header containing sensitive data from another user.

CVE-2019-7614 Affected Elasticsearch Versions

2 component(s)
Fixed Versions:
6.8.27.2.1
Product / Package Ecosystem Affected Versions Fixed Version
org.elasticsearch:elasticsearch
Maven
< 6.8.2
6.8.2
org.elasticsearch:elasticsearch
Maven
≥ 7.0.0
< 7.2.1
7.2.1

References

Frequently Asked Questions

What is CVE-2019-7614?
CVE-2019-7614 is a security vulnerability in Elasticsearch involving Concurrent Execution using Shared Resource with Improper Synchronization in Elasticsearch under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition').
Which Elasticsearch versions are affected?
Affected versions include releases prior to 6.8.2, 7.2.1 across affected packages: org.elasticsearch:elasticsearch.
What version fixes CVE-2019-7614?
Upgrading to 6.8.2, 7.2.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is elasticsearch affected?
Yes, org.elasticsearch:elasticsearch is affected in releases prior to 6.8.2, 7.2.1. Upgrade your dependency to 6.8.2, 7.2.1 or later.
What is the CVSS score of CVE-2019-7614?
CVE-2019-7614 has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2019-7614?
CVE-2019-7614 is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') (The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.).
How can I check Maven dependencies for CVE-2019-7614?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.elasticsearch'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-jqm6-m3j3-8gg9",
  "modified" : "2022-06-27T14:24:20Z",
  "published" : "2022-05-24T16:51:49Z",
  "aliases" : [ "CVE-2019-7614" ],
  "summary" : "Concurrent Execution using Shared Resource with Improper Synchronization in Elasticsearch",
  "details" : "A race condition flaw was found in the response headers Elasticsearch versions before 7.2.1 and 6.8.2 returns to a request. On a system with multiple users submitting requests, it could be possible for an attacker to gain access to response header containing sensitive data from another user.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.elasticsearch:elasticsearch"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "6.8.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.elasticsearch:elasticsearch"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.2.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-7614"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/elastic/elasticsearch"
  }, {
    "type" : "WEB",
    "url" : "https://www.elastic.co/community/security"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-362" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-06-27T14:24:20Z",
    "nvd_published_at" : "2019-07-30T22:15:00Z"
  }
}