Skip to main content
Version: 7.3

Update Java in Elasticsearch to fix the vulnerability CVE-2026-114938

Introduction​

This article describes how to update the Java Development Kit (JDK) bundled with Elasticsearch on Windows. Updating the bundled JDK to the patched Java 21.0.13.1 version resolves vulnerability CVE-2026-114938.

Issue​

The Java version bundled with Elasticsearch may not contain the latest security patches and can trigger vulnerability alerts.

Resolution​

You can manually replace the bundled JDK with a patched Java 21.0.13.1 version. This workaround applies to Elasticsearch installed on Windows and has been tested and verified.

Prerequisites​

Before you begin:

  • Use a Windows ZIP package of JDK 21.0.13.1.
  • Confirm the Elasticsearch installation path (default path is c:\Program Files\TECH-ARROW\contentACCESS.Search.V2\Elastic\).
  • Make sure you have permission to stop the Elasticsearch service and modify its installation directory.

Step 1: Download the patched JDK​

Choose one of the following options to download the Windows ZIP package for JDK 21.0.13.1:

  1. Go to the Microsoft Build of OpenJDK download page.
  2. Locate OpenJDK 21.0.13.1 LTS and download the Windows ZIP package.
info

An account is not required to download the Microsoft Build of OpenJDK package.

Option B: Oracle Java SE Development Kit​

  1. Go to the Oracle JDK 21.0.13.1 release notes for the full release information.
  2. Download the Windows ZIP package for Java SE Development Kit 21.0.13.1.
info

An Oracle account is required to download the Oracle JDK package.

Step 2: Replace the bundled JDK​

  1. Stop the Elasticsearch Windows service and wait until the service is completely stopped.
  2. Optionally, copy the existing <elasticsearch-install-path>\jdk folder to a safe location as a backup.
  3. Delete all existing files and subfolders inside <elasticsearch-install-path>\jdk.
  4. Extract the downloaded JDK ZIP package directly into <elasticsearch-install-path>\jdk.
  5. Verify that the bin, conf, and lib folders are located directly inside the jdk directory.
warning

Do not extract the JDK into an additional subfolder. A path such as <elasticsearch-install-path>\jdk\jdk-21.0.13.1 is incorrect.

Step 3: Start and verify Elasticsearch​

  1. Start the Elasticsearch Windows service.
  2. Verify that the service remains running.
  3. Confirm that the Elasticsearch node starts normally and joins the cluster.

If Elasticsearch does not start, stop the service and verify that the contents of the downloaded JDK package were extracted directly into <elasticsearch-install-path>\jdk.