# Patch OpenJDK for Java4Shell (CVE-2026-114938)

> Match your OpenJDK build to CERT-EU floors, use the interim Base64 flag if needed, then patch and restart JVMs.

Source: https://fullbytedeveloper.com/blog/patch-openjdk-java4shell-cve
Published here: 2026-11-23

OpenJDK Vulnerability Advisory 2026/11/17 lists CVE-2026-114938 in `hotspot/compiler`. NVD records Oracle CVSS 3.1 8.1 High. CERT-EU 2026-021 gives version floors, interim flags and a restart rule. This page covers that one CVE only. [1][2][3]

Related reading: [Check PHP deployments for the October security fixes](/blog/php-critical-security-update-check), [Node.js and Ruby October security updates](/blog/node-ruby-october-security-updates), and [When a Shirudo live shield buys time before the patch](/blog/shirudo-live-shield-before-patch). Browse the [Security topic](https://fullbytedeveloper.com/blog/topic/security).

## Confirm the CVE and the score

OpenJDK lists CVE-2026-114938 under hotspot/compiler in the 2026-11-17 advisory risk matrix. [1]

NVD published CVE-2026-114938 on 2026-11-17 and records Oracle CVSS 3.1 8.1 High with vector `AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`. [2]

CERT-EU 2026-021 (2026-11-18) describes it as a high severity OpenJDK issue that can lead, under certain circumstances, to unauthenticated remote code execution. Exploitation conditions in that advisory include an x86-64 CPU with `avx512f`, `avx512bw`, `avx512vbmi` and `bmi2`, an active Base64 intrinsic, and attacker-controlled Base64 data reaching the decoder. [3]

## Match your build to the CERT-EU floors

CERT-EU lists fixed releases that include: [3]

- OpenJDK / Java SE 17: 17.0.21.1
- OpenJDK / Java SE 21: 21.0.13.1
- OpenJDK / Java SE 25: 25.0.5.1
- OpenJDK / Java SE 27: 27.0.1.1

Check the runtime your service actually loads (container image, service unit, distribution package), not only the `java` on a laptop PATH.

```bash
java -version
```

You should see the vendor and build string for that executable. Compare it with your vendor's advisory if you run Temurin, Corretto, Zulu or another OpenJDK build: those vendors ship fixes on their own schedules. [3]

## Apply an interim flag only when you cannot patch yet

Where an immediate update is not possible, CERT-EU documents disabling the Base64 intrinsic: [3]

```bash
java -XX:+UnlockDiagnosticVMOptions -XX:-UseBASE64Intrinsics -version
```

As an alternative, CERT-EU documents `-XX:UseAVX=2`. That option can reduce performance. Both options need a JVM restart. To verify the intrinsic setting after restart: [3]

```bash
java -XX:+PrintFlagsFinal -version | grep UseBASE64Intrinsics
```

Per CERT-EU, ARM64 systems are not affected. Prefer the patched build when you can ship it; keep interim flags as a bridge, not the final state. [3]

## Patch, then restart every JVM

CERT-EU recommends updating vulnerable OpenJDK builds and restarting all JVMs after the update, with internet-facing applications first. [3]

An application reload that leaves the old JVM process running does not load the new runtime. Restart the processes (or roll new containers) and record the build string you see after restart.

Send this to the teammate who patched the package and assumed a rolling reload was enough.

## Sources

1. [OpenJDK Vulnerability Advisory 2026/11/17](https://openjdk.org/groups/vulnerability/advisories/2026-11-17)
2. [NVD: CVE-2026-114938](https://nvd.nist.gov/vuln/detail/CVE-2026-114938)
3. [CERT-EU security advisory 2026-021](https://www.cert.europa.eu/publications/security-advisories/2026-021/)
