Safelight
English

Java4Shell (CVE-2026-114938): Patch the JDK, Not Spring or Tomcat

Alert By Safelight Security Team ·

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

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

  1. Find the Java version your service actually runs (servers often have several installed)
  2. If you use Docker, check the base image tag (eclipse-temurin, openjdk, …)
  3. Check whether you use Spring Security httpBasic(), Tomcat BASIC authentication, or Basic auth in front of admin screens (Actuator, Tomcat Manager)
  4. 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

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.

Check a domain nowFree · 30 seconds · nothing stored

Sources

  1. Tenable: Java4Shell (CVE-2026-114938) FAQ
  2. JFrog Security Research: Java4Shell
  3. watchTowr: Java4Shell FAQ
  4. Apache Tomcat announcement: CVE-2026-34486
  5. NVD: CVE-2026-34486

Security news