Elasticsearch, Logstash 8.19.26, 9.4.10, 9.5.7 and Elastic Cloud Enterprise 3.8.7, 4.2.2 (Java4Shell - CVE-2026-114938) Security Update (ESA-2026-vpcg-q2wh)

Elasticsearch, Logstash, and Elastic Cloud Enterprise Java4Shell Remote Code Execution and Denial of Service

CVE-2026-114938, also known as Java4Shell, is a vulnerability in OpenJDK and Oracle Java SE disclosed on November 17, 2026.

For Elasticsearch and Logstash, only nodes on x86-64 CPUs that support the AVX512_VBMI instruction set are affected. Nodes on ARM CPUs and on older x86 CPUs are not affected at this time.

In Elasticsearch, an authenticated user with at least read access can exploit the vulnerability to achieve remote code execution. Unauthenticated attackers can exploit it to cause denial of service against Elasticsearch nodes.

In Logstash, an unauthenticated attacker who can submit events from an untrusted source can cause denial of service when the Elastic Integration filter (logstash-filter-elastic_integration) runs an Elasticsearch ingest pipeline that decodes attacker-controlled Base64 fields. The impact in Logstash is a process crash, not code execution. The Logstash API, Ruby plugins, and common inputs such as Beats, HTTP, and TCP do not use the affected Java function. Logstash 7.17.x and versions before 8.6.2 are not affected at this time.

Elastic Cloud Enterprise (ECE) is affected through the Elasticsearch system deployments bundled with its downloadable distribution when those deployments run on affected hardware. The Elasticsearch impacts described here also apply to those deployments. Customer-created Elasticsearch deployments managed by ECE are assessed by their own Elasticsearch version and hardware, independently of the ECE version. After upgrading ECE, restart all hosted Elasticsearch deployments, including system clusters, to activate the mitigation.

Kibana, Beats, Elastic Agent, APM Server, the Elastic Cloud on Kubernetes (ECK) operator, and Elastic Maps Server do not use Java and are not affected. Elasticsearch clusters managed by ECK have the same exposure as other self-managed Elasticsearch clusters. The Elastic APM Java agent is also not affected and requires no update, whether loaded with -javaagent or attached at runtime. Application exposure depends on its own JDK; follow the JDK vendor’s guidance.

Elastic Cloud Serverless has been remediated. Elastic Cloud Hosted has been mitigated. See the Elastic Cloud Serverless and Elastic Cloud Hosted sections below for the mitigation details.

The fixed Elasticsearch releases update the bundled JDK to 27.0.1.1+4 and the fixed Logstash releases disable the affected JVM optimization by default.

The primary CVSS assessment covers authenticated remote code execution in Elasticsearch; read access is sufficient.

For questions, contact Elastic Support or email support@elastic.co.

Affected Versions:

Elasticsearch / Bundled JDK (platforms: x86-64 CPUs supporting AVX512_VBMI)

  • 7.x: All versions from 7.17.3 up to and including 7.17.29
  • 8.x: All versions from 8.1.3 up to and including 8.19.25
  • 9.x:
    • All versions from 9.0.0 up to and including 9.4.9
    • All versions from 9.5.0 up to and including 9.5.6

Logstash / Bundled JDK (platforms: x86-64 CPUs supporting AVX512_VBMI)

  • 8.x: All versions from 8.6.2 up to and including 8.19.25
  • 9.x:
    • All versions from 9.0.0 up to and including 9.4.9
    • All versions from 9.5.0 up to and including 9.5.6

Elastic Cloud Enterprise / Bundled Elasticsearch system deployments (platforms: x86-64 CPUs supporting AVX512_VBMI)

  • 2.x: All versions from 2.13.2 up to and including 2.13.4
  • 3.x: All versions from 3.2.0 up to and including 3.8.6
  • 4.x: All versions from 4.0.0 up to and including 4.2.1

Affected Configurations:

  • The node runs on an x86-64 CPU that supports the AVX512_VBMI instruction set.

Examples of affected CPUs include Intel Xeon Ice Lake and later, and AMD Zen 4 and later. ARM CPUs and older x86 CPUs are not affected at this time.

Elasticsearch remote code execution requires an authenticated user with at least read access; denial of service can be triggered without authentication. Logstash exploitation additionally requires the Elastic Integration filter to process events from an untrusted source using an Elasticsearch ingest pipeline that decodes attacker-controlled Base64 fields.

For ECE, the version ranges describe its default bundled Elasticsearch system deployments. An affected ECE version requires a system deployment still running an affected Elasticsearch version on the specified hardware without an active mitigation. Independently upgraded or mitigated deployments require assessment of their actual configuration. Customer-created Elasticsearch deployments remain subject to the Elasticsearch ranges even on an ECE release outside the listed bundled-system ranges.

Solutions and Mitigations:

The issue is resolved in Elasticsearch / Bundled JDK (platforms: x86-64 CPUs supporting AVX512_VBMI) versions 8.19.26, 9.4.10, and 9.5.7.

The issue is resolved in Logstash / Bundled JDK (platforms: x86-64 CPUs supporting AVX512_VBMI) versions 8.19.26, 9.4.10, and 9.5.7.

The issue is resolved in Elastic Cloud Enterprise / Bundled Elasticsearch system deployments (platforms: x86-64 CPUs supporting AVX512_VBMI) versions 3.8.7 and 4.2.2.

Elastic Cloud Enterprise (Self-hosted)

Upgrade Elastic Cloud Enterprise, then restart all deployments

  1. Upgrade an affected ECE 3.x installation to 3.8.7 or an affected ECE 4.x installation to 4.2.2.
  2. Restart all hosted Elasticsearch deployments, including system clusters.

The mitigation takes effect when each Elasticsearch instance restarts. Upgrading ECE alone does not activate it in already-running instances. For ECE 2.x, follow the supported ECE upgrade path to 3.8.7 or 4.2.2. Customer-created Elasticsearch deployments can alternatively be upgraded to a release containing the fixed bundled JDK. Follow the ECE upgrade procedure for system deployments.

For Users that Cannot Upgrade:

Elasticsearch (Self-hosted)

Mitigation Option 1: Disable the Elasticsearch Base64 optimization

Self-managed customers can mitigate this vulnerability by disabling the affected JVM optimization. Only Elasticsearch nodes on x86-64 CPUs that support the AVX512_VBMI instruction set are affected (for example Intel Xeon Ice Lake and later, and AMD Zen 4 and later). Nodes on ARM CPUs and on older x86 CPUs are not affected at this time.

To check a host, run grep -c avx512vbmi /proc/cpuinfo; a result greater than 0 means the host is affected.

To apply the mitigation, create a file in the config/jvm.options.d/ or /etc/elasticsearch/jvm.options.d/ directory depending on your installation method on each affected node (for example config/jvm.options.d/cve-2026-114938.options) that contains the single line -XX:-UseBASE64Intrinsics, then restart the node. Docker users can mount this file into /usr/share/elasticsearch/config/jvm.options.d/, and ECK users can add the option to the ES_JAVA_OPTS environment variable in the pod template. A rolling restart avoids cluster downtime. To confirm the mitigation is active, check that -XX:-UseBASE64Intrinsics appears in the jvm.input_arguments of each node in the output of GET _nodes/jvm.

Customers should still upgrade to a fixed release listed in the Solutions and Mitigations section.

Mitigation Option 2: Use an updated external JDK

Download and point Elasticsearch to use the latest JDK in a bring-your-own-JDK model. Note that this mitigation will not work with Docker.

Mitigation Option 1 for Elasticsearch on ECK

The ECK operator does not use Java and is therefore not affected. Kibana, Beats, Elastic Agent, APM Server and Elastic Maps Server that ECK manages do not use Java and are not affected at this time.

Elasticsearch clusters that ECK manages are affected in the same way as other self-managed Elasticsearch clusters. Only Elasticsearch Pods on Kubernetes nodes with x86-64 CPUs that support the AVX512_VBMI instruction set are affected.

To check the node of an Elasticsearch Pod, run:

kubectl exec <pod-name> -c elasticsearch -- grep -c avx512vbmi /proc/cpuinfo

A result greater than 0 means that the node is affected. Kubernetes can move a Pod to a different node. If a node pool has a mix of CPU types, apply the mitigation to all x86-64 nodeSets.

To apply the mitigation, add -XX:-UseBASE64Intrinsics to the ES_JAVA_OPTS environment variable in the podTemplate of each affected nodeSet. If ES_JAVA_OPTS already has a value, for example to set the heap size, add the option to the end of the existing value. Do not add a second ES_JAVA_OPTS entry.

spec:
  nodeSets:
  - name: default
    podTemplate:
      spec:
        containers:
        - name: elasticsearch
          env:
          - name: ES_JAVA_OPTS
            value: "-XX:-UseBASE64Intrinsics" # keep your existing options

When you apply the change, ECK restarts the Elasticsearch Pods automatically, one at a time (a rolling restart). You do not have to restart the Pods manually.

To confirm that the mitigation is active, make sure that -XX:-UseBASE64Intrinsics appears in jvm.input_arguments of each node in the output of GET _nodes/jvm.

Upgrade to a fixed release listed in the Solutions and Mitigations section. To upgrade, change spec.version of the Elasticsearch resource. After the upgrade, you can remove the option.

Elastic Cloud Enterprise (Self-hosted)

Set mitigating JVM flags through Elastic Cloud Enterprise

If you cannot upgrade ECE or the affected Elasticsearch clusters, the API or advanced editor can inject the mitigating JVM flag -XX:-UseBASE64Intrinsics into each cluster. Contact Elastic Support for the procedure. Include system clusters in the remediation plan, and restart affected instances to activate the setting.

Logstash (Self-hosted)

Logstash on ECK: Disable the Base64 optimization

Logstash is affected only if it runs the elastic_integration filter on Base64 data that an attacker controls. The result is a crash, not code execution. To apply the mitigation, add -XX:-UseBASE64Intrinsics to the LS_JAVA_OPTS environment variable in the podTemplate of the Logstash resource. If LS_JAVA_OPTS already has a value, add the option to the end of the existing value.

spec:
  podTemplate:
    spec:
      containers:
      - name: logstash
        env:
        - name: LS_JAVA_OPTS
          value: "-XX:-UseBASE64Intrinsics" # keep your existing options

Disable the Logstash Base64 optimization

Self-managed customers can mitigate this vulnerability by disabling the affected JVM optimization. Only Logstash nodes on x86-64 CPUs that support the AVX512_VBMI instruction set are affected (for example Intel Xeon Ice Lake and later, and AMD Zen 4 and later). Nodes on ARM CPUs and on older x86 CPUs are not affected based on our analysis at this time.

To check a host, run grep -c avx512vbmi /proc/cpuinfo; a result greater than 0 means the host is affected.

To apply the mitigation, add the single line -XX:-UseBASE64Intrinsics to the config/jvm.options file of each affected node, then restart Logstash. Docker and ECK users can add the option to the LS_JAVA_OPTS environment variable. To confirm the mitigation is active, check that -XX:-UseBASE64Intrinsics appears in the JVM bootstrap flags line of the Logstash log at startup.

Customers should still upgrade to a fixed release listed in the Solutions and Mitigations section. After the upgrade, the manual setting is no longer needed. Customers must not set -XX:+UseBASE64Intrinsics, because it re-enables the affected optimization.

Elastic Cloud Serverless

Elastic Cloud Serverless has been remediated. Exposure had been limited to extremely rare cases related to the CPU architecture; Elastic deployed a hotfix for those cases on November 18, 2026.

Elastic has no indication of exploitation of this vulnerability in Elastic Cloud Serverless. Elastic developed detection rules for exploitation of CVE-2026-114938 within the Elastic Cloud infrastructure; alerts are continuously monitored by the Elastic Information Security team.

Elastic Cloud Hosted (Elasticsearch)

Elastic Cloud Hosted has been mitigated. A small percentage (approximately <5%) of Elastic Cloud Hosted deployments use a vulnerable CPU architecture in Microsoft Azure; deployments in GCP and AWS are not affected at this time.

Given the complexity, including successful authentication, required to exploit CVE-2026-114938 in this operating context, Elastic deployed a configuration change to mitigate the vulnerability for impacted hosts on November 20, 2026. Elastic has no indication of exploitation.

Elastic developed detection rules for exploitation of CVE-2026-114938 within the Elastic Cloud infrastructure; alerts are continuously monitored by the Elastic Information Security team.

The same JVM configuration is available to self-managed customers through the Elasticsearch workarounds in this advisory. Versions 8.19.26, 9.4.10, and 9.5.7 of Elasticsearch include the updated bundled JDK, 27.0.1.1+4. Later releases also include the fix.

Severity: CVSSv3.1: High ( 8.8 ) - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Severity (Unauthenticated denial of service: Elasticsearch and Logstash): CVSSv3.1: High ( 7.5 ) - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVE ID: CVE-2026-114938
Problem Type: CWE-122 - Heap-based Buffer Overflow
Problem Type: CWE-1395 - Dependency on Vulnerable Third-Party Component

2 Likes