Java4Shell (CVE-2026-114938): Patch the JDK, Not Spring or Tomcat
Bottom line: updating Spring or Tomcat does not fix this. Update the Java runtime (JDK/JRE) on the server to a fixed build and restart the application.
What happened?
On 17 November 2026 a heap out-of-bounds write in OpenJDK's Base64 decoder was disclosed (CVE-2026-114938, nicknamed Java4Shell). The decoder is used when handling HTTP Basic authentication: Spring Security, Tomcat and Jetty 12 pass the attacker's Authorization header to it before checking the username and password, so an attacker doesn't need to log in.
Security vendors reported reproducing the attack shortly after disclosure, so internet-facing Java servers should be patched quickly.
Affected and fixed versions
- Java 17: update to 17.0.21.1 or later (17.0.6 to 17.0.21.0.3 affected)
- Java 21: 21.0.13.1 or later
- Java 25: 25.0.5.1 or later
- Java 27: 27.0.1.1 or later
- Java 8 and 11: regular builds not affected (Oracle Java SE 8 Performance Pack fixed in 8u513)
Version strings differ by vendor. For example, Eclipse Temurin's fixed build is 17.0.21.1+2 while 17.0.21+9 is still vulnerable. Check your vendor's advisory (Oracle, Temurin, Red Hat, Ubuntu, Amazon Corretto, …) rather than relying on the number alone.
Are you affected? How to check
- Find the Java version your service actually runs (servers often have several installed)
- If you use Docker, check the base image tag (eclipse-temurin, openjdk, …)
- Check whether you use Spring Security httpBasic(), Tomcat BASIC authentication, or Basic auth in front of admin screens (Actuator, Tomcat Manager)
- If so, update the JDK to a fixed build and restart
java -version
ps -ef | grep java # see which java binary the running service uses
If you can't patch right away, some vendors suggest restarting the JVM with -XX:-UseBASE64Intrinsics as a stopgap. Treat it as temporary, check your vendor's guidance, and apply the real update as soon as possible.
Other Java server issues to check
- Apache Tomcat CVE-2026-34486: the cluster encryption (EncryptInterceptor) can be bypassed. Fixed in 11.0.21, 10.1.54 and 9.0.117.
- Spring advisories (19 November 2026): high-severity issues in Spring Security (CVE-2026-59273) and Spring Boot (CVE-2026-59414). No attacks confirmed yet, but update anyway.
- If Tomcat Manager (/manager/html) or Spring Actuator is reachable from the internet, block outside access; they are favourite targets.
If you may already have been hit
If the server was exposed while vulnerable, look for signs of intrusion after patching: unfamiliar .jsp files in webapps, unknown WAR deployments, and odd processes running as the server user. See our web shell article below for details.
The Safelight deep check shows whether your Tomcat version is exposed and outdated, whether Tomcat Manager or Actuator is public, and which ports are open. The Java version isn't visible from outside, so check it on the server.