Vulnerability · OpenJDK / Java · updated

Java4Shell (CVE-2026-114938): memory corruption in Java 17 to 27 on modern Intel and AMD servers

A bug in Java lets an attacker corrupt the memory of a Java service by sending it a short, malformed piece of text. On some popular products that works before any login and can end in the attacker running code.

FixReleased
ExploitationAttempts seen
Public exploit codeYes
CISA KEVNot listed
Severity8.1 (CVSS 3.1, Oracle); Red Hat rates it 9.8

Quick answers

What is Java4Shell?

Java4Shell (CVE-2026-114938) is a vulnerability in OpenJDK / Java. A bug in Java lets an attacker corrupt the memory of a Java service by sending it a short, malformed piece of text. On some popular products that works before any login and can end in the attacker running code.

Am I affected by Java4Shell?

If you run Java 17 or newer on Intel Xeon (Ice Lake or newer) or AMD Zen 4 or newer, including common AWS instance types such as C6i, M6i, C7i, M7i and C7a, yes. Java 8 and 11, ARM servers (AWS Graviton) and older CPUs are not affected.

Which versions fix Java4Shell?

Java 17: 17.0.21.1; Java 21: 21.0.13.1; Java 25: 25.0.5.1; Java 27: 27.0.1.1; Java 18 to 20, 22 to 24, 26: No fix published. Move to a supported line.; Java 8 and 11: Nothing to do (except Oracle 8u511b33-perf, the Enterprise Performance Pack build)

Is Java4Shell being exploited?

Exploitation attempts have been reported, with no confirmed successful attack yet; it is not in the CISA KEV catalog. Public exploit code exists.

Is there a workaround for Java4Shell?

Add -XX:-UseBASE64Intrinsics to the JVM options. Red Hat calls it the preferred mitigation: it removes the vulnerable code path and keeps the other AVX-512 optimizations. Calif, AWS, Keycloak and Jenkins recommend it too. Expect slower Base64 decoding in apps that do a lot of it, and test before you roll it out widely. The heavier option is -XX:UseAVX=2, which turns off AVX-512 entirely. Use it on x86-64 only: a JVM on ARM64 refuses to start with this flag.

What this means for your business

The researchers who found it showed code execution without a login on default setups of Keycloak, Jira, Confluence, Artifactory, Jenkins and PingFederate. Those systems usually hold passwords, source code and access to everything else.

It only works on newer Intel and AMD server processors, which is most cloud servers bought in the last few years, so it is not a lab curiosity.

Is this about you? If you run Java 17 or newer on Intel Xeon (Ice Lake or newer) or AMD Zen 4 or newer, including common AWS instance types such as C6i, M6i, C7i, M7i and C7a, yes. Java 8 and 11, ARM servers (AWS Graviton) and older CPUs are not affected.

Ask your team or provider:

How fast: This week, and today for anything that faces the internet (single sign-on, CI, ticketing). Exploitation attempts were reported within a day of disclosure.

Not sure which of your services run an affected Java?

We inventory Java runtimes across your hosts, containers and bundled products with read-only access, then update them or apply the flag in a window you approve.

For engineers

LineAffectedFixed in
Java 1717.0.6 up to 17.0.2117.0.21.1
Java 21below 21.0.13.121.0.13.1
Java 25below 25.0.5.125.0.5.1
Java 27below 27.0.1.127.0.1.1
Java 18 to 20, 22 to 24, 26not listed by OpenJDKNo fix published. Move to a supported line.
Java 8 and 11not affectedNothing to do (except Oracle 8u511b33-perf, the Enterprise Performance Pack build)

Vendor builds with the fix: Temurin 17.0.21.1+2, 21.0.13.1+2, 25.0.5.1+2, 27.0.1.1+4; Corretto 17.0.21.1.2, 21.0.13.1.2, 25.0.5.1.2, 27.0.1.1.4; Zulu 17.70.201, 21.54.201, 25.38.201. Docker eclipse-temurin tags 17.0.21.1_2 and 21.0.13.1_2. Debian and Ubuntu ship fixed packages; check Red Hat for RHEL errata.

Scores differ: Oracle, the CVE owner, rates it 8.1 because the attack is not trivial; Red Hat rates it 9.8.

When it can be exploited

Check if you are affected

java -version
docker run --rm <image> java -version

# CPU: all four flags must print for the host to be exposed
grep -m1 '^flags' /proc/cpuinfo | tr ' ' '\n' | grep -E '^(avx512f|avx512bw|avx512vbmi|bmi2)$'

# Is the workaround flag active in a running JVM? Expect "= false"
jcmd <pid> VM.flags -all | grep -F UseBASE64Intrinsics

Check the Java inside each container and each bundled product, not only the one on the host. A container that moved to a new instance type can become exposed without any change on your side.

If you can't upgrade today

Add -XX:-UseBASE64Intrinsics to the JVM options. Red Hat calls it the preferred mitigation: it removes the vulnerable code path and keeps the other AVX-512 optimizations. Calif, AWS, Keycloak and Jenkins recommend it too. Expect slower Base64 decoding in apps that do a lot of it, and test before you roll it out widely.

The heavier option is -XX:UseAVX=2, which turns off AVX-512 entirely. Use it on x86-64 only: a JVM on ARM64 refuses to start with this flag.

Restart the JVM after adding the flag, then confirm it with jcmd as shown above.

# Applies to every JVM started in this environment
export JAVA_TOOL_OPTIONS="$JAVA_TOOL_OPTIONS -XX:-UseBASE64Intrinsics"

# Kubernetes container spec
env:
  - name: JAVA_TOOL_OPTIONS
    value: "-XX:-UseBASE64Intrinsics"

Signs you were already hit

No indicators of compromise have been published. GreyNoise reported exploitation attempts by 18 November, with no confirmed success. Look for JVM crashes (hs_err_pid files), unexpected restarts of internet-facing Java services since 17 November, and new processes started by Java service users.

Prompt for your coding agent

Paste this into Claude Code, Codex or Cursor, opened in the repository that holds your server and deployment configuration. It only reads and proposes changes; review the diff before you apply it.

You are helping us respond to Java4Shell (CVE-2026-114938). Work read-only: do not change files, run deployments or restart anything. At the end, propose one diff for us to review.

1. Find every Java runtime this repository defines: Dockerfiles and base images (eclipse-temurin, amazoncorretto, azul/zulu-openjdk, openjdk, bitnami/*, and product images such as keycloak, jenkins/jenkins, atlassian/*), Kubernetes manifests and Helm values, Gradle/Maven toolchain settings, CI pipeline JDK setup steps, and Ansible/Terraform/Bicep that install a JDK.
2. For each, report the Java version or image tag. Mark it affected if it is Java 17.0.6 to 17.0.21, 21 below 21.0.13.1, 25 below 25.0.5.1, 27 below 27.0.1.1, or a non-LTS line 18-20, 22-24 or 26. Java 8 and 11 are not affected.
3. Report where these workloads run if the repository says so (instance types, node pools, VM sizes). x86-64 Intel Ice Lake or newer and AMD Zen 4 or newer are exposed; ARM64 (Graviton, Ampere) is not.
4. Find where JVM options are set (JAVA_OPTS, JAVA_TOOL_OPTIONS, JDK_JAVA_OPTIONS, product-specific variables such as KC_JAVA_OPTS_APPEND or JENKINS_JAVA_OPTS) and whether -XX:-UseBASE64Intrinsics is already present.
5. Propose a diff that moves each affected runtime to a fixed build (same vendor, same major line, same image variant) and, where a fixed image is not available yet, adds -XX:-UseBASE64Intrinsics to the existing JVM options variable. Never add -XX:UseAVX=2 to anything that might run on ARM64.
6. List what you could not determine, such as Java bundled inside third-party products.

Timeline

  1. Calif discloses the bug with a bounded proof of concept. Oracle and OpenJDK publish advisories; fixed .1 builds start shipping. CISA urges immediate patching.

  2. Keycloak, Jenkins and AWS publish guidance. Temurin and Corretto fixed builds are out. GreyNoise reports exploitation attempts.

  3. Fixed eclipse-temurin Docker images are published. Not in CISA KEV as of the 20 November catalog.

Sources

Checked 22 Nov 2026. We update this page when the vendor, CISA or the distributions change the picture.