Skip to content

All posts

Updated IT security, Patch management

PSA: Memory flaw in the Java runtime allows code execution through Base64

OpenJDK CVE-2026-114938, known as Java4Shell: a flaw in the Base64 decoder can overwrite memory on certain x86-64 systems and lead to remote code execution. Java 17, 21, 25 and 27 are affected. Fixes are available from Oracle, Corretto, Azul and Temurin, plus packages for Debian, Ubuntu, RHEL 8, 9 and 10 and SLES 15 SP7. Status as of 23 November 2026.

Status as of 23 November 2026, 09:00 CET. Fixed runtime builds are now also available from Eclipse Temurin, in Debian 12 and 13 (DLA-4917-1, DSA-6639-1, DSA-6640-1), in Ubuntu, in RHEL 8, 9 and 10 and in SLES 15 SP7. Still open are mainly SLES 16 and container images and appliances that ship their own Java, at Red Hat for example the Keycloak and Jenkins images. NVD analysed the record on 20 November and shows only Oracle’s score (CVSS 8.1). The flaw is still not in CISA’s KEV catalog (catalog version 2026.11.20).

On 17 November 2026, Oracle released a Critical Security Patch Update that includes fixes for the Java runtime. The same disclosure appears in the OpenJDK Vulnerability Advisory of the same day. The most severe of the Java flaws is CVE-2026-114938 in the Base64 decoder of the HotSpot JVM, in the hotspot/compiler component. Oracle and OpenJDK rate it 8.1 (High) under CVSS 3.1: an unauthenticated attacker can send data over the network to the relevant API, for example through a web service, and if the attack succeeds, take over the runtime. Oracle describes the attack as difficult.

Calif, the firm that found the flaw and published it under the name Java4Shell, rates it 9.2 under CVSS 4.0. Calif writes that specially crafted Base64 data can overwrite neighbouring memory on certain x86-64 processors. That can be used to read memory or to run attacker-controlled code. There is no exploit that works the same way against every Java application; the path into the decoder depends on the application. Ordinary features such as HTTP Basic authentication, file uploads and token checks can open that path, often before anyone has logged in. That is how Calif describes it in its write-up, and Red Hat follows the same line in bulletin RHSB-2026-018.

The name Java4Shell is marketing. Calif itself writes that after publishing PHP2Shell it deliberately looked for something more familiar than PHP, namely Java. The flaw itself is still real: it does not sit in a library you can swap out, but in the runtime that many line-of-business applications run on.

Why a flaw like this also sits in the Java runtime

Java is regarded as memory-safe because the language checks accesses and manages memory. The flawed code sits below that. To decode Base64 faster, the JVM replaces the Java implementation on suitable processors with hand-written machine code that uses AVX-512 instructions. The flaw sits in that path. OpenJDK and Oracle have maintained this runtime for years; even so, a bug in an accelerated routine can bypass the language’s memory checks. That is not limited to obscure specialty software. It affects the platform that banks, public bodies and a large share of business applications run on.

The accelerated path is tied to the hardware. Calif, Red Hat and Datadog describe it in the same terms: it runs only on x86-64 processors with AVX-512 VBMI, in practice Intel Xeon from Ice Lake onwards and AMD from Zen 4 onwards. ARM64, including AWS Graviton, is not affected. Older Xeon processors without that feature do not use the flawed path, according to these advisories. That narrows the set of systems, but it does not replace an inventory: many newer servers, cloud instances and virtualised hosts ship with exactly these processors.

Where this runs in your environment

Java often sits where nobody still treats the runtime as a product of its own: in the company wiki, the CI server, the identity service, the ticketing system, a Spring service you built yourselves, a container image of a line-of-business application, or an appliance that brings “its own Java”. In its alert of 17 November, CISA points out explicitly that JDKs and Java runtimes often do not appear as separate entries in software inventories.

Calif reports that, in default configuration and on affected hardware, it ran code without a login in Keycloak, Atlassian Jira, Atlassian Confluence, JFrog Artifactory, Jenkins and PingFederate; and after login, among others, in Apache Kafka, Apache Solr, Elasticsearch, Gerrit and Spinnaker. The lists are not exhaustive. These are the discoverer’s claims. Independent labs, in particular Datadog, have reproduced the memory corruption and the resulting crashes, but have not confirmed code execution against those products. Datadog writes that a crash is the more readily achievable impact; reliable code execution needs additional work tailored to the application.

For operations, that changes the urgency only a little. An internet-facing Jira, Jenkins or Keycloak service on Java 17 or newer and a current Xeon or EPYC belongs on today’s patch list, even if product-specific code execution has not yet been independently reproduced. That is what CISA asks for: internet-facing systems first.

Who is affected and who is not

According to Calif, OpenJDK is affected from 17.0.6 onwards, so the 17, 21, 25 and 27 lines, and therefore the common distributions built from it. Oracle lists as the last affected supported builds Java SE 17.0.21.0.3, 21.0.13.0.3, 25.0.5.0.3 and 27.0.1.0.3, plus GraalVM for JDK 17.0.21.0.3 and 21.0.13.0.3 and GraalVM Enterprise Edition 21.3.20.0.3. The ordinary Java 8 and Java 11 lines do not contain this path; Red Hat and OpenJDK mark 8 and 11 as not affected for this CVE. Oracle’s exception is the Java SE 8 Enterprise Performance Pack (8u511b33-perf).

Distribution status as of 23 November 2026, 09:00 CET:

  • Oracle Java SE / OpenJDK: Fixed builds 17.0.21.1, 21.0.13.1, 25.0.5.1 and 27.0.1.1, released on 17 November in the CSPU and the OpenJDK advisory.
  • Amazon Corretto: 17.0.21.1.2, 21.0.13.1.2, 25.0.5.1.2 and 27.0.1.1.4 since 17 November (AWS What’s New). On Amazon Linux the matching java-*-amazon-corretto packages are listed as fixed (ALAS).
  • Azul Zulu: Listed as fixed in Azul’s CVE list for the November 2026 update, including JDK builds 17.0.21.1+2, 21.0.13.1+2, 25.0.5.1+2 and 27.0.1.1+4 (Zulu 17.70.201, 21.54.201, 25.38.201 and 27.30.201).
  • Red Hat Enterprise Linux 8, 9 and 10: errata of 19 November, including RHSA-2026:100563 (RHEL 8, Java 17), RHSA-2026:100564 (RHEL 9, Java 17), RHSA-2026:100567 (RHEL 8 and 9, Java 21), RHSA-2026:100571 (RHEL 9, Java 25) and RHSA-2026:100568 and RHSA-2026:100572 (RHEL 10, Java 21 and 25). The portable Red Hat builds of OpenJDK 17.0.21.1, 21.0.13.1 and 25.0.5.1 followed on 18 November. OpenJDK 8 and 11 are not affected. Red Hat still lists as affected, among others, the container images for Keycloak (rhbk/keycloak-rhel9), Jenkins from OpenShift Developer Tools, AMQ Broker 7, JBoss EAP 7 and 8 and Streams for Apache Kafka 3 (Red Hat CVE, RHSB-2026-018).
  • Debian: Debian 12 (bookworm) received openjdk-17 17.0.21.1+2-1deb12u1 from the LTS team in DLA-4917-1. Debian 13 (trixie) received openjdk-21 21.0.13.1+2-1deb13u1 in DSA-6639-1 and openjdk-25 25.0.5.1+2-1~deb13u1 in DSA-6640-1, all three dated 19 November. In unstable (sid) the packages are fixed; testing (forky) still lists openjdk-21 and openjdk-25 as vulnerable (Debian Security Tracker).
  • Ubuntu: The CVE page now rates the flaw as High. openjdk-17, openjdk-21 and openjdk-25 are listed as fixed in 22.04 LTS, 24.04 LTS, 26.04 LTS and 26.10, openjdk-17 and openjdk-21 also in 20.04, and openjdk-17 in 18.04 (USN-9155-1 to USN-9158-1 and USN-9178-1 to USN-9180-1).
  • SUSE: The CVE page still shows the overall state “Pending”. On SLES 15 SP7, java-17-openjdk, java-21-openjdk and java-25-openjdk are listed as “Released” (SUSE-SU-2026:5385-1, 5393-1 and 5394-1 of 20 November). On SLES 16.0 and 16.1 the packages are still “In progress” or “Affected”. Java 8 and 11 are not affected.
  • Eclipse Temurin: The Adoptium API names as the latest GA builds jdk-17.0.21.1+2, jdk-21.0.13.1+2 and jdk-25.0.5.1+2 (released on 18 November) as well as jdk-27.0.1.1+4.

Anyone who runs the runtime bundled in a product, a container image or an appliance will not get the fix through the host’s package update. What counts there is the JVM the process has actually loaded.

Check and act

1. Which Java runtimes are actually running? Walk through servers, VMs, container images and appliances. Record the vendor and the exact build number of the JVM the process uses, including runtimes that Jira, Confluence, Jenkins, Keycloak or a line-of-business application ship themselves. Run java -version on the running instance.

2. Is the JVM running on a processor with AVX-512 VBMI? On Linux, /proc/cpuinfo shows the flags. If avx512vbmi is missing, the flawed path is not active according to the advisories we have. Check this per host, not only in the procurement list: in the cloud it depends on the instance type, and on a hypervisor on the processor that is exposed to the guest.

3. Is the version in the affected range? Java 17 from 17.0.6 up to but not including 17.0.21.1, Java 21 before 21.0.13.1, Java 25 before 25.0.5.1, Java 27 before 27.0.1.1. Compare against your vendor, not only against the Oracle number; Temurin, Corretto, Zulu and distribution packages have their own build strings.

4. Patch where the build is available. Oracle, Corretto, Azul Zulu and Temurin, as well as the packages for Amazon Linux, Debian 12 and 13, Ubuntu, RHEL 8, 9 and 10 and SLES 15 SP7, can be updated today. Then restart every Java process. Rebuild container images on the new base image and roll them out. Replacing a package does not change a process that is already running.

5. Disable the accelerated Base64 path where the package is missing. This now mainly concerns SLES 16 and container images and appliances that ship their own, still outdated JVM. There, start affected JVMs with -XX:-UseBASE64Intrinsics until the vendor ships a new build. That is the narrower of the two known mitigations. The alternative, -XX:UseAVX=2, disables AVX-512 entirely and must be set only on x86-64; on ARM the JVM will not start with it. After the patch, remove the flag again. Give priority to internet-facing services that decode Base64 before login.

6. Watch for crashes. Unexpected JVM crashes and unusual Java processes are the observation points CISA names. The Canadian Centre for Cyber Security recommends isolating internet-facing applications that cannot be updated immediately, until a fix can be applied (AL26-029).

The Canadian Cyber Centre wrote on 17 November that it was not aware of active exploitation at that time. GreyNoise wrote the same during the night to 18 November and did not expect easy mass exploitation at first. That does not excuse skipping the inventory. It means there is time for an orderly update, not for leaving the systems as they are.

A Java 17 to 27 runtime on a machine with AVX-512 VBMI needs either the patched runtime build today, or the -XX:-UseBASE64Intrinsics flag. Where both are missing and the application decodes Base64 from the network, the service is, according to Calif and Red Hat, reachable by an unauthenticated attacker. Code execution against named products is so far the discoverer’s claim, not that of independent labs; a crash of the service is already enough of an operational risk.