---
id: 2026-11-java4shell-openjdk-base64-cve-2026-114938-keycloak-jenkins-elasticsearch-fixed-november-jdk
title: "Java4Shell: OpenJDK Base64 memory corruption (CVE-2026-114938) on AVX-512 VBMI CPUs; Keycloak, Jenkins and Elasticsearch affected; fixed in 17.0.21.1, 21.0.13.1 and 25.0.5.1"
date_disclosed: 2026-11-17
last_updated: 2026-11-20
severity: high
status: patched
ecosystems: [java, self-hosted, docker, ci-cd, identity]
tools_affected: ["OpenJDK 17.0.6 and later, 21, 25 and 27 before the November 2026 releases, on x86-64 CPUs with AVX-512 VBMI", "Keycloak container images 26.8.2-1 and 26.8.2-2", "Jenkins controllers on an affected Java", "Elasticsearch 7.17.3 and later (no fixed release yet)", "Logstash 8.6.2 and later (no fixed release yet)"]
tags: [java, openjdk, memory-corruption, rce, keycloak, jenkins, elasticsearch, exploitation-attempts, runtime]
---

## TL;DR

[CVE-2026-114938](https://cveawg.mitre.org/api/cve/CVE-2026-114938) is a memory corruption bug in OpenJDK's Base64 decoder on x86-64 CPUs with AVX-512 VBMI. It affects OpenJDK 17.0.6 and later. An unauthenticated request can crash the JVM, and researchers report code execution against Keycloak and Jenkins. Upgrade Java to 17.0.21.1, 21.0.13.1, 25.0.5.1 or a fixed 27 build and restart, or start the JVM with `-XX:-UseBASE64Intrinsics`. Elasticsearch and Logstash have no fixed release yet.

## What happened

Calif, whose researcher Quang Luong found the bug, published on 2026-11-17. [SecurityWeek's 2026-11-19 report](https://www.securityweek.com/java4shell-exploitation-attempts-begin-as-vendors-rush-out-advisories/) says Oracle and the OpenJDK project released patches the same day. [Its 2026-11-18 report](https://www.securityweek.com/java4shell-vulnerability-puts-many-enterprise-applications-at-risk-of-takeover/) relays Endor Labs: on 2026-11-17 the fix was not yet in the public OpenJDK 17, 21 and 25 update repositories. That report also says the OpenJDK advisory lists Java 17, 21, 25 and 27 as affected.

Two conditions must both hold, per the [Jenkins project](https://www.jenkins.io/blog/2026/11/18/mitigating-java4shell/):

- Java 17 after 17.0.6 and before 17.0.21.1, Java 21 before 21.0.13.1, or Java 25 before 25.0.5.1.
- An x86-64 CPU with the AVX-512 VBMI instruction: Intel Ice Lake or newer, AMD Zen 4 or newer. ARM64, s390x and ppc64le are not at risk.

Scores differ by provider:

| Provider | Rating | Read |
|---|---|---|
| Oracle (CNA) | 8.1, `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H` | 2026-11-20 |
| Amazon Linux, per [AWS bulletin 2026-189](https://aws.amazon.com/security/security-bulletins/2026-189-aws/) | Important, 8.8 | 2026-11-20 |
| Red Hat, per SecurityWeek | Critical | not opened |

This file rates it `high` on the CNA score. SecurityWeek relays VulnCheck's view: crashing a JVM is easy, and code execution is much harder and specific to each target.

What each vendor says about its product:

| Product | Vendor statement | Fix |
|---|---|---|
| Keycloak | [The Keycloak team](https://www.keycloak.org/2026/11/java4shell-vulnerability-cve-2026-114938) says Keycloak decodes Base64 before authentication, and that the researchers "report that they demonstrated" code execution without login. As checked on 2026-11-18, the x86-64 images 26.8.2-1 and 26.8.2-2 bundle an affected OpenJDK 21.0.13. | Image tags `latest`, `26.8`, `26.8.2` and `26.8.2-3` carry Red Hat OpenJDK 21.0.13.1 |
| Jenkins | A controller is at risk only when both conditions hold. | Upgrade Java and restart, or add the JVM flag |
| Elasticsearch | [Elastic](https://www.elastic.co/blog/java4shell-remote-code-execution-rce-vulnerability) says 7.17.3 and later are affected. Code execution needs a user with read access. A crash needs no login. | Expected in 8.19.26, 9.4.10, 9.5.7 and 9.6.0. Not released when read on 2026-11-20 |
| Logstash | 8.6.2 and later, only through the Elastic Integration filter with a pipeline that decodes Base64 from an untrusted source. Crash only. | Same upcoming releases |
| Kibana, Beats, Elastic Agent | Not affected. They do not use Java. | none needed |
| Amazon Corretto | AWS says Graviton workloads are not affected. | 27.0.1.1.4, 25.0.5.1.2, 21.0.13.1.2, 17.0.21.1.2 |

SecurityWeek's two reports add these, from pages this run did not open:

- Per the 2026-11-18 report, Calif reported code execution without login against default Jira, Confluence, Artifactory, Jenkins, Keycloak and PingFederate, and with login against Kafka, Solr, Elasticsearch, Gerrit and Spinnaker.
- Cisco confirmed more than a dozen affected products and had released no fixes.
- Atlassian recommends disabling AVX-512 on the latest versions of its Data Center products in standard installations until patches ship.
- GreyNoise recorded over 150 matching requests from five addresses by early 2026-11-19 and no successful intrusion on its sensors. WatchTowr and Cloudflare also reported probing.

AWS said on 2026-11-19 that it had no evidence the issue had been used.

The CNA record lists Oracle Java SE 8u511b33-perf, 17.0.21.0.3, 21.0.13.0.3, 25.0.5.0.3 and 27.0.1.0.3 as affected. Keycloak and AWS give the range as OpenJDK 17.0.6 onward. Jenkins writes "after 17.0.6". For Java 27, AWS names Corretto 27.0.1.1.4 as fixed.

## Am I affected?

Run both checks on every host, container and CI runner that runs a Java service. Both must be true.

```bash
java -version
grep -o -w -m1 'avx512vbmi' /proc/cpuinfo
```

- The second command comes from the Jenkins post. Output means the CPU has the instruction.
- A container uses the Java inside the image and the CPU of the host. Check the image, not your workstation.
- For Keycloak, check failover nodes and nodes used during rolling updates too.
- Managed services: Elastic deployed a hotfix to Elastic Cloud Serverless on 2026-11-18. It says fewer than about 5% of Elastic Cloud Hosted deployments, all on Azure, use an affected CPU.

## If you are affected

1. Upgrade the Java runtime to 17.0.21.1, 21.0.13.1 or 25.0.5.1, or your distributor's matching build, and restart the service. On Java 27, take your distributor's November build.
2. If you cannot upgrade yet, start the JVM with `-XX:-UseBASE64Intrinsics` and restart. Jenkins and AWS both give this flag.
3. Keycloak on containers: pull `26.8.2-3` or later and redeploy.
4. Elasticsearch and Logstash: apply the flag now and upgrade when the releases Elastic names are published.
5. If a public Java service crashed or restarted without cause since 2026-11-17, treat it as a possible attempt. See [if your web app was compromised](../playbooks/if-your-webapp-was-compromised.md).

## Prevention

- Rebuild images when the base Java image changes. A pinned image tag keeps the old runtime.
- Keep identity servers, CI controllers and search clusters off the public internet where the design allows.

## Sources

- [CVE-2026-114938, CVE Services record (Oracle CNA)](https://cveawg.mitre.org/api/cve/CVE-2026-114938): published 2026-11-17, updated 2026-11-19. Score, vector, affected Oracle versions.
- [Keycloak: Java4Shell, what Keycloak admins need to do](https://www.keycloak.org/2026/11/java4shell-vulnerability-cve-2026-114938): last updated 2026-11-19. Image tags, fixed versions, conditions.
- [Jenkins and Java4Shell](https://www.jenkins.io/blog/2026/11/18/mitigating-java4shell/): 2026-11-18. Version ranges, CPU check, JVM flag.
- [Elastic: Java4Shell](https://www.elastic.co/blog/java4shell-remote-code-execution-rce-vulnerability): 2026-11-18. Affected products, upcoming fixed releases, cloud status.
- [AWS security bulletin 2026-189](https://aws.amazon.com/security/security-bulletins/2026-189-aws/): updated 2026-11-19. Corretto versions, Graviton, Amazon Linux rating.
- [SecurityWeek, 2026-11-18](https://www.securityweek.com/java4shell-vulnerability-puts-many-enterprise-applications-at-risk-of-takeover/) and [SecurityWeek, 2026-11-19](https://www.securityweek.com/java4shell-exploitation-attempts-begin-as-vendors-rush-out-advisories/): Calif's findings, VulnCheck's assessment, Cisco, Red Hat, Atlassian, probing reports.
- Not opened: Calif's post, Oracle's alert, the Red Hat, Cisco, Siemens and Atlassian pages.
