What just exploded in Java land?

Meet Java4Shell, a nasty memory-corruption bug in Java’s hardware-accelerated Base64 decoder that can lead to remote code execution on poorly protected systems. In plain human terms: send the right goofy-looking Base64, and on some machines Java will vomit memory in ways that let an attacker read secrets or run their own code.

This issue is tracked as CVE-2026-114938 and affects OpenJDK builds starting with version 17.0.6 and any downstream distributions built from that code (yes, that means a whole pile of vendors and flavours).

How it works, what’s affected, and what to do

The root cause is a bug in the optimized Base64 decode path that runs on certain x86-64 CPUs that support AVX-512 instructions. Specially crafted Base64 input can corrupt memory — researchers measured triggering the problem with as little as 64 “A” characters followed by an equals sign on newer builds (older OpenJDK 17 builds needed 128 “A” characters plus the equals sign).

Not every Java app is automatically doomed: attackers must find a way to send that malicious Base64 into an app that actually reaches the vulnerable decoder. Still, the researchers demonstrated exploits against many widely used applications running with default settings.

  • Affected Java runtimes and distributions: OpenJDK (v17.0.6+), Oracle Java SE, Amazon Corretto, Eclipse Temurin, Microsoft Build of OpenJDK, Azul Zulu, Red Hat OpenJDK.
  • Examples of apps researchers could exploit (real-world impact):
  • Unauthenticated RCE demonstrated against Keycloak, Atlassian Jira, Atlassian Confluence, JFrog Artifactory, Jenkins, and PingFederate.
  • Authenticated RCE demonstrated against Apache Kafka Broker, Apache Solr, Elasticsearch, Gerrit, and Spinnaker.

The researchers also tested frameworks like Apache Struts and Spring Boot and showed the problem is not limited to one vendor or product. However, there’s no single universal exploit — attackers must craft an app-specific delivery method to feed the bad Base64 into the vulnerable code path.

Fun fact (and slightly terrifying): the initial discovery and a first working exploit were found with the help of an AI coding assistant. The researcher reportedly found the bug quickly and produced an exploit prototype within a few hours, with modest AI usage costs.

Vendor patches were released (the major Java vendors pushed fixes in their November updates). The simple, correct fix: update your Java runtime to the patched version as soon as you can.

If you can’t immediately update, temporary mitigations exist. Launch affected OpenJDK builds with the flag -XX:-UseBASE64Intrinsics to disable the hardware-accelerated Base64 path, or use -XX:UseAVX=2 to prevent AVX-512 instructions from being used. These are stopgaps — not a permanent substitute for applying the official security update.

Bottom line: patch your Java runtimes, test your apps, and assume that any service that accepts Base64 input could be an attack vector until you’re patched. Also, maybe don’t let mysterious streams of AAAAAA= near important servers.