Guide · Ilia Dubovskii · 25 November 2026

Java2Shell (CVE-2026-114938): what is confirmed, what is not, and what to do now

Java2Shell (CVE-2026-114938, called Java4Shell in most advisories) is confirmed and fixed. Oracle and the OpenJDK project published it on 17 November 2026 as a memory-corruption bug in the HotSpot JVM, in Java 17 (from 17.0.6), 21, 25 and 27, and fixed builds exist from every large JDK vendor. On 25 November 2026 the open questions are different ones: how hard remote code execution really is, whether anyone has been compromised, and whether your running JVMs have the fix.

The short version

1. What changed since 17 November

On 17 November 2026 our page said: reported, not confirmed, no fixed build confirmed. All three are out of date.

The two names still mean one CVE. Vendors and CISA write "Java4Shell". We keep "Java2Shell" because it sits in the same family as React2Shell and PHP2Shell on our *2Shell vulnerabilities page.

2. What is confirmed, and what is not

Claim Status on 25 November 2026 Source
CVE-2026-114938 is a real bug in the JDKConfirmedOracle, OpenJDK, NVD
Affects Java 17 from 17.0.6, and 21, 25, 27Confirmed. OpenJDK marks 17, 21, 25, 27. Red Hat states the code arrived in 17.0.6OpenJDK, Red Hat
Only x86-64 CPUs with AVX-512 VBMIConfirmed by Red Hat, AWS, Eclipse Temurin and Jenkins. Oracle's advisory doesn't mention the CPURed Hat bulletin, AWS
Remote code execution without loginDemonstrated by Calif against Keycloak, Jira, Confluence, Artifactory, Jenkins and PingFederate in default configurations. Red Hat and Keycloak repeat the claim. The exploit chains are not publicCalif, Keycloak
Fixed builds existConfirmed for Oracle, Corretto, Temurin, Red Hat, Microsoft, Azul, Debian and UbuntuSee the table of fixed builds below
Exploited in the wildScanning and blind attempts are reported. No confirmed compromiseGreyNoise, SecurityWeek
In CISA's KEV catalogueNo. Catalogue version 2026.11.24 has no entry for CVE-2026-114938CISA KEV

What nobody outside Calif and a few vendors can check yet is how reliable code execution is against a given product. VulnCheck's analysis says that crashing an affected JVM is trivial, and that code execution needs heap grooming plus a separate memory leak for each target. VulnCheck doesn't expect the bug to be "easily or widely exploitable", and also says it has a full exploit that it gives to its customers.

3. Where the sources disagree

The score. Four numbers are in circulation for CVE-2026-114938, and they come from different assumptions.

Who Score What it assumes
Oracle and OpenJDK8.1, CVSS 3.1No login needed, attack complexity high
Amazon Linux8.8, CVSS 3.1, "Important"Code execution needs a logged-in low-privilege user; without login the result is a crash
Red Hat9.8, "Critical"No login needed, attack complexity low
Calif9.2, CVSS 4.0The finder's own score, on a different scale

Sources: Oracle, Amazon Linux, Red Hat, JFrog for Calif's score. Amazon Linux and Red Hat describe the same bug and disagree on whether an attacker needs an account. Plan for the worse reading.

Java 8 and 11. Standard OpenJDK 8 and 11 builds are not affected. Two commercial products are exceptions: Oracle lists the Java SE 8 Enterprise Performance Pack (8u511b33-perf) as affected, and Azul says Azul Prime for Java 8 and 11 is affected. If you run either, "we're on Java 8" isn't an answer.

Exploitation. GreyNoise, last updated 25 November 2026 at 09:48 UTC, shows 7 addresses that sent 261 requests with the trigger shape in an Authorization header, and 0 successful intrusions against its sensors. SecurityWeek reported on 19 November that watchTowr saw requests with a java4shell-recon user agent and blind exploitation attempts, and that Previdian logged nine attempts and couldn't tell whether any target was compromised. AWS says it has no evidence that the issue has been used. So the honest status is: attempts yes, confirmed compromise no. A sensor that isn't a real Jira or Keycloak can't be compromised by an exploit written for Jira or Keycloak, so "0 intrusions" says little about real targets.

4. Fixed builds by distribution

The fix is a new JDK build. Nothing in your pom.xml or build.gradle changes.

Distribution Fixed build Source
OpenJDK, upstream17.0.21.1, 21.0.13.1, 25.0.5.1, 27.0.1.1Eclipse Temurin
Oracle Java SE and GraalVM for JDK17.0.21.1, 21.0.13.1, 25.0.5.1, 27.0.1.1; 8u513-perf for the Enterprise Performance Pack. GraalVM Enterprise Edition 21.3: no fix listedwatchTowr, reading Oracle's advisory
Eclipse Temurinjdk-17.0.21.1+2, jdk-21.0.13.1+2, jdk-25.0.5.1+2, jdk-27.0.1.1+4, published 18 November. Docker tags such as 17.0.21.1_2-jre-noble exist. Some platforms were still in progressTemurin, status issue
Amazon Corretto17.0.21.1.2, 21.0.13.1.2, 25.0.5.1.2, 27.0.1.1.4, published 17 NovemberAWS bulletin 2026-189
Amazon LinuxALAS2-2026-4123 (AL2, Corretto 17); ALAS2023-2026-3478 to 3481 (AL2023, Corretto 17, 21, 25, 27). Corretto 22, 23, 24 and 26: no fix plannedAmazon Linux
Red HatRed Hat build of OpenJDK 17.0.21.1, 21.0.13.1, 25.0.5.1 on 18 November; RHEL 8, 9 and 10 packages on 19 November (RHSA-2026:100563 to 100572)Red Hat CVE page
Microsoft Build of OpenJDK17.0.21.1, 21.0.13.1, 25.0.5.1Microsoft release notes
AzulThe November 2026 builds of Azul Core; Azul Prime 26.08.110.0 and 26.02.510.0Azul
Debianopenjdk-17 17.0.21.1+2-1~deb12u1 (bookworm); openjdk-21 21.0.13.1+2-1~deb13u1 and openjdk-25 25.0.5.1+2-1~deb13u1 (trixie). Testing was still vulnerableDebian tracker
Ubuntuopenjdk-17 17.0.21.1+2, openjdk-21 21.0.13.1+2 and openjdk-25 25.0.5.1+2 on 22.04 and 24.04Ubuntu

Java 18, 19, 20, 22, 23, 24 and 26 get no fix. JFrog says to move to a supported line.

Products that bundle a JDK publish their own updates. Keycloak updated its 26.8 container images to OpenJDK 21.0.13.1; the tags 26.8.2-1 and 26.8.2-2 carry an affected build. Jenkins tells administrators to update Java under the controller. SecurityWeek lists Elastic, Atlassian, Cisco and Siemens advisories; read your vendor's page for the product you run.

5. How to check if you are affected

A JVM is exposed to CVE-2026-114938 when all three answers are yes. Check them in this order, because the first two take minutes.

1. Is the Java version affected? Affected: 17.0.6 up to 17.0.21.0.x, 21 below 21.0.13.1, 25 below 25.0.5.1, 27 below 27.0.1.1, and every release of 18 to 20, 22 to 24 and 26. The fixed builds have a .1 in the fourth position.

# on a host
java -version

# in a running container or pod
docker exec <container> java -version
kubectl exec <pod> -- java -version

# in an image, without starting the application
docker run --rm --entrypoint java <image> -version

# the version a running process really uses (it may differ from the java on the path)
jcmd <pid> VM.version

JDKs that aren't on the path, such as the one bundled inside Elasticsearch, Jenkins or a vendor appliance, need a search. Every JDK and JRE ships a release file with a JAVA_VERSION line:

find / -type f -name release -exec grep -H '^JAVA_VERSION=' {} + 2>/dev/null

2. Does the CPU have AVX-512 VBMI? Run this on the host or inside the container. If it prints avx512vbmi, the CPU has the instruction.

grep -o -w -m1 'avx512vbmi' /proc/cpuinfo

Red Hat's bulletin lists four flags that must all be present: avx512f, avx512bw, avx512vbmi and bmi2. Intel Ice Lake and later and AMD Zen 4 and later have them. AWS names the EC2 families C6i, M6i, R6i, C7i, M7i, R7i, C7a, M7a and R7a. The same image can be exposed on one node and safe on another, so check where the workload runs, not where it was built.

3. Where does the JDK come from in your code? This is where the fix will be made. Search the Dockerfiles, then look at the ECS task definitions and their CPU architecture. An empty architecture means x86-64.

grep -rnEi --include='Dockerfile*' \
  'temurin|corretto|openjdk|zulu|liberica|sapmachine|graalvm|tomcat|jetty|maven|gradle|keycloak|jenkins' .

aws ecs describe-task-definition --task-definition <name> \
  --query "taskDefinition.[runtimePlatform.cpuArchitecture,containerDefinitions[].image]"

Base images are often one level down. If your FROM line names an internal image, run the docker run command above against that image.

Lambda. AWS says Lambda functions on the default execution environment are not affected, because that environment doesn't support AVX-512 VBMI. Functions on Lambda Managed Instances may be affected, depending on the instance type. Functions deployed as container images have no runtime in the first list below; rebuild those from the patched base image. For ZIP functions, AWS has updated the managed Java runtimes for functions in Auto mode.

# Java functions, their runtime and architecture
aws lambda list-functions --output table \
  --query "Functions[?contains(Runtime || '', 'java')].[FunctionName,Runtime,Architectures[0]]"

# functions deployed as container images
aws lambda list-functions --query "Functions[?PackageType=='Image'].FunctionName"

# runtime update mode of one function
aws lambda get-runtime-management-config --function-name <name>

Fargate. You don't choose the CPU on AWS Fargate. AWS says customers running Java on Fargate x86-64 are responsible for updating the JDK, and that Fargate tasks on Graviton are not affected. Treat an x86-64 Fargate task with an affected JDK as exposed.

6. What to do now

In order of urgency.

  1. Today: find internet-facing JVMs on affected builds and affected CPUs. Login services first. Calif's list of pre-auth targets is Keycloak, Jira, Confluence, Artifactory, Jenkins and PingFederate, and the requests GreyNoise records carry the trigger in an Authorization header, which a service decodes before it knows who you are.
  2. Today, where you can't deploy a fixed JDK yet: turn the decoder off. Start the JVM with -XX:-UseBASE64Intrinsics. Red Hat, AWS, Temurin and Jenkins all give this flag as the interim mitigation. It disables only the accelerated Base64 path. In a container the simplest place is the environment variable JAVA_TOOL_OPTIONS=-XX:-UseBASE64Intrinsics, followed by a restart. The alternative -XX:UseAVX=2 turns off all AVX-512 use; Red Hat warns that an Arm64 JVM won't start with it. Both flags can cost performance.
  3. Verify the flag in the running process. jcmd <pid> VM.flags -all | grep UseBASE64Intrinsics should show false. An environment variable that was set after the process started changes nothing.
  4. This week: deploy the fixed build. Change the base image tag or the package version, rebuild, redeploy, and restart every JVM. A patched JDK on disk doesn't change a JVM that is already running. Then run java -version in the running container again.
  5. This week: update the products that bundle a JDK. Keycloak, Jenkins, Elasticsearch, Atlassian Data Center products and appliances ship their own Java. Your base image fix doesn't reach them.
  6. Until all of that is done: reduce what can reach the service. CISA's alert suggests limiting unauthenticated access and enforcing input-size limits where patching has to wait. An admin interface that only your VPN can reach is a much smaller target.
  7. Watch for crashes. A failed attempt can look like a JVM crash: an hs_err_pid file, a restart loop, a service that falls over under a burst of requests. VulnCheck found that one request usually didn't crash a default server and a burst did. CISA lists unexpected JVM crashes among the things to monitor. Until the fix is in, treat a crash of an internet-facing JVM as a possible attempt.
  8. Remove the flag after the fix is verified, so you get the Base64 performance back.

7. The window before your fix is running: a honeytoken

Steps 4 and 5 take days in most fleets, and longer for appliances. A honeytoken is the cheapest cover we know for that window. It is a decoy credential that nothing legitimate uses, placed where an attacker looks first.

Whatever the exploit chain for a given Java application turns out to be, code execution in a JVM leads to the same next step as in every other *2Shell bug: read the environment variables and config files for credentials, then try them. So the setup doesn't depend on the bug:

  1. Put a decoy AWS access key in the environment of each Java workload, next to the real variables. The application never reads it.
  2. Use one decoy per workload, so the key ID tells you which workload was entered.
  3. Match any CloudTrail event from that key with an EventBridge rule and send it to the channel people watch.
  4. Attach one response that can be undone: restart the task from its image, or deactivate the key.

The Terraform for this is in AWS canary credentials with Terraform.

This is how our own two incidents differed. React2Shell in December 2025 took us four days to contain, with CPU, traffic and cost alerts firing and being explained away. PHP2Shell in October 2026 got code execution in one of our PHP containers on AWS Fargate; the attacker read the environment and tried the decoy key, the alert was in Slack in under a minute, the task was restarted within another minute, and nothing was harmed. We haven't been hit through Java2Shell, so we have no numbers for it.

What a honeytoken does not do for Java2Shell. It doesn't stop the exploit request. It doesn't see an attacker who only crashes the JVM, and crashing is the easy outcome of this bug. It doesn't see an attacker who never uses the decoy. A restart ends one session; if the JDK is still unpatched and the flag isn't set, the attacker can come back. Keep your other alerts and GuardDuty. The honeytoken tells you that something is an attack; the other signals tell you what happened.

Where Compass fits, and where it doesn't

Compass is our open-source (Apache 2.0) operations agent for AWS. For Java2Shell its help is limited, and the limit matters:

8. Sources

9. FAQ

Is Java2Shell the same as Java4Shell?

Yes. Both names mean CVE-2026-114938. Oracle uses neither name. CISA, Red Hat, AWS and most security vendors write "Java4Shell".

Which Java versions are affected by CVE-2026-114938?

OpenJDK 17 from 17.0.6, and 21, 25 and 27 before the fixed builds 17.0.21.1, 21.0.13.1, 25.0.5.1 and 27.0.1.1, on x86-64 CPUs with AVX-512 VBMI. The unsupported lines 18 to 20, 22 to 24 and 26 are affected and get no fix. Standard Java 8 and 11 builds are not affected; Oracle's Java 8 Enterprise Performance Pack and Azul Prime 8 and 11 are.

Is Java2Shell being exploited?

Scanning and blind exploitation attempts have been reported since 18 November 2026. On 25 November 2026 no source we could open confirmed a successful compromise, and CVE-2026-114938 was not in CISA's Known Exploited Vulnerabilities catalogue. A public reproducer for the memory corruption exists; the exploit chains for specific products have not been published.

Is there a workaround for Java2Shell?

Yes. Start the JVM with -XX:-UseBASE64Intrinsics and restart it. Red Hat, AWS, Eclipse Temurin and Jenkins all list this flag as the interim mitigation until the fixed JDK is deployed. Check the running process with jcmd, not the environment variable.

Are AWS Lambda and Graviton affected?

AWS says Java workloads on Graviton are not affected, and that Lambda functions on the default execution environment are not affected because it lacks AVX-512 VBMI. Lambda Managed Instances, EC2, ECS and Fargate on x86-64 can be affected, and the JDK update there is the customer's job.

Last checked: 25 November 2026. Written by Ilia Dubovskii, founder of Beamreach. Our first Java2Shell page described 17 November, when the CVE was reported but not confirmed. This article is the update.

Related: *2Shell vulnerabilities · How to protect against *2Shell · PHP2Shell contained in two minutes · AWS canary credentials · One Fake Password (talk) · CVE Watch