Debug School

Cover image for Java4Shell
Suyash Sambhare
Suyash Sambhare

Posted on

Java4Shell

Updating Java on Your Servers

Patching the JDK on your servers is the easy part. The flaw lives in the Java runtime, so it travels wherever that runtime is rebuilt, repackaged or bundled. CISA's alert warns that JDKs and Java runtimes may not appear as separate entries in software inventories. This post maps those rings: the Java supply chain as a whole, where Java4Shell lands today, how it could be chained, and who is likely to use it.

  • Find the JVM each service actually runs, including runtimes bundled inside products and container images, since they may not show up in inventories.
  • Update Oracle Java SE and GraalVM past the builds Signals lists as affected, and update Debian's openjdk-17, -21, -25 and -27 packages.
  • Patch the nine sibling Java SE CVEs in the same pass; they hit the same products.
  • Patch internet-facing identity first (Keycloak, PingFederate), then CI/CD and collaboration (Jenkins, Artifactory, Jira, Confluence), then other Java services that decode logins, tokens or uploads.
  • Watch for unexpected JVM crashes and Java processes spawning shells, as CISA advises.

What is Java4Shell

CVE-2026-114938 is a heap-based buffer overflow (CWE-122) and out-of-bounds write (CWE-787) in Oracle Java SE and Oracle GraalVM. Oracle rates it CVSS 3.1 8.1: an unauthenticated attacker with network access can take over the runtime, though the attack is difficult to pull off. Reaching it requires supplying data to the affected APIs, for example through a web service.
Coverage places the bug in HotSpot's AVX-512 Base64 decoder, which only runs on x86-64 CPUs with AVX-512 VBMI. A crafted Base64 string with short "=" padding writes past the end of a heap buffer. Because Base64 carries HTTP Basic credentials, tokens and file uploads, the vulnerable code can run before a user logs in.

Java

The Java supply chain

The supply chain blast radius map splits as follows. On the one hand are vendors that rebuild Java and ship fixes through ordinary update channels: Red Hat appears on 1,093 Java CVEs, Debian on 557, Apple on 350. On the other hand are vendors that embed a runtime in appliances and consoles, where a fix waits for the vendor's next release: NetApp (239), Dell (143), McAfee (42) and Siemens (51) lead.

Between them sit the JDK distributions that rebuild OpenJDK under their own labels: Red Hat's build of OpenJDK on 185 Java CVEs across all its versions, Eclipse Temurin on 76, IBM Semeru on 73 and Azul Zulu on 19. Each ships fixes on its own schedule and version string.

Where Java4Shell is prominent

7 vendors and 45 affected configurations. On the runtime side are Oracle's Java SE and GraalVM builds; Red Hat's build of OpenJDK 17, 21 and 25, Eclipse Temurin 25 and Amazon Corretto 27; and RHEL 8, 9 and 10 and Debian 12, 13, 14 and sid. On the embedded side are Red Hat's build of Keycloak, JBoss EAP and JBoss Web Server, AMQ Broker, Streams for Apache Kafka and Data Grid; Siemens Industrial Edge Management, Siveillance Control and Desigo CC Advanced Reporting; and four Palo Alto Networks Idira privileged-access products. The seventh vendor, Chainguard, is mapped through a package that is not a Java runtime.

Java4Shell did not ship alone. The same Oracle release carries nine more Java SE CVEs, four of them rated High (7.0–7.4). All ten map to the same Oracle and Debian products, so the right move is one runtime update that closes all ten.

Day one in the data

On the evening of disclosure, record mapped Java4Shell to two vendors, Oracle and Debian, and eight Oracle configurations. It had no fix, no PoC, no exploit and no CVSS 4.0 score, and it was not flagged as trending despite nine indexed news articles and a CISA alert.

Top 5 potential attack chains

Java4Shell gives an attacker a foothold wherever untrusted Base64 reaches a vulnerable JVM. Coverage indexed names the products where that happens by default, and shows what attackers have already done with each of them.

Ref: https://www.securin.io/articles/java4shell-why-updating-java-on-your-servers-isn-t-enough

Top comments (0)