Skip to content

AI Compass / News

Java4Shell: critical flaw in Java's Base64 decoder

General

A flaw in OpenJDK lets crafted Base64 data overwrite memory it shouldn't touch. It affects Java 17, 21, 25 and 27 on newer x86 processors. Updates have been out since 17 November. The flaw was found with the help of AI.

Source: OpenJDK Vulnerability Advisory: 2026/11/17,

Technical drawing: a strip of memory with a 50-byte block. A 64-byte write runs 62 bytes past its end into hatched neighbouring cells. Below it, the label AVX-512.Technical drawing: a strip of memory with a 50-byte block. A 64-byte write runs 62 bytes past its end into hatched neighbouring cells. Below it, the label AVX-512.

What happened: On 17 November 2026, OpenJDK and Oracle fixed a flaw in Java that its finders call “Java4Shell” (CVE-2026-114938). It sits in the Base64 decoder. Base64 is a way of writing binary data as text; programs use it for things like sign-ins and file uploads. To decode faster, Java uses special instructions on newer x86 processors (AVX-512 VBMI). That accelerated code is where the bug is: for an input of 64 characters plus one “=”, Java sets aside 50 bytes but writes 62 bytes past their end. On Java 17, Calif says the input has to be longer: 128 characters plus “=”. That’s memory corruption: a write to memory that belongs to another part of the program.

How serious it is: OpenJDK and Oracle rate it 8.1 out of 10 (CVSS 3.1). According to Oracle, it can be exploited over the network without signing in. Calif, the security firm that describes the flaw, scores it 9.2 on the newer CVSS 4.0 scale. Calif says it ran malicious code in tests on several widely used programs in their default settings, without signing in, including Jenkins, Jira, Confluence and Keycloak. The US agency CISA is calling for immediate patching. No attacks are known so far: the flaw isn’t in CISA’s catalogue of exploited vulnerabilities (as of the catalogue’s 17 November update, 17:53 UTC).

Who is affected: All three conditions have to apply:

What you can do:

  1. No Java in use: then there’s nothing to do. Keep in mind programs that ship their own Java, such as Jenkins or container images.
  2. Check the version: java -version shows it. For programs with their own Java, check their advisories.
  3. Check the processor (Linux): Calif gives this command: grep -m1 '^flags' /proc/cpuinfo | tr ' ' '\n' | grep -E '^(avx512f|avx512bw|avx512vbmi|bmi2)$'. The processor is only affected if all four names appear.
  4. Update: install the latest Java release from your vendor. Check first whether your vendor already ships one with the 17 November fix.
  5. Stopgap until the update arrives: Calif names the start-up flag -XX:-UseBASE64Intrinsics, which switches off the accelerated Base64 code. ARM machines don’t need it, because they aren’t affected.

Context: Calif’s headline is “Write once, RCE everywhere”, meaning malicious code anywhere. That’s overstated, and Calif itself explains why: there is no exploit that fits every case, and each target program needs its own attack path. An exploit is a program that actually takes advantage of a flaw. Calif is holding back its finished exploits for individual programs for now. Calif found the flaw with AI: according to Calif, a researcher found it with OpenAI’s Codex in about an hour, the first exploit took two more hours, and the compute cost was under 200 US dollars. Oracle credits Quang Luong of Calif and Albert Yang with reporting it. My take: if AI finds flaws like this in hours, the gap between a patch and an attack gets shorter. That’s a good reason to update early.

My workshops show you how to bring AI into your team. See the workshops