Skip to content
Java4Shell: mitigation applied to Java applications (Security update)

Java4Shell: mitigation applied to Java applications (Security update)

November 17, 2026·David Legrand
David Legrand

The OpenJDK security advisory and the Oracle security alert describe a critical vulnerability affecting Java, CVE-2026-114938, known as Java4Shell. With a CVSS v4 score of 9.2, it can allow unauthenticated remote code execution on applications that decode Base64 data sent by an attacker, through an authentication header or a file upload for example.

The flaw is an out-of-bounds write in the hardware-accelerated Base64 decoder of the HotSpot JVM. It affects OpenJDK 17.0.6 and later, and the distributions built from it, on x86-64 processors with AVX-512 VBMI support.

Active mitigation

Clever Cloud now adds the -XX:-UseBASE64Intrinsics option when it launches a Java application, as recommended by the researchers who found the vulnerability. It disables the affected code: the JVM uses its standard Base64 implementation instead. This can reduce the performance of Base64 encoding and decoding, but shouldn’t have a significant impact on most applications.

We are restarting all our customers’ instances so they run with it: in this case, you have nothing to do. If you start the JVM yourself, with CC_RUN_COMMAND or from another runtime such as Docker or Linux, add the same flag and redeploy:

CC_RUN_COMMAND="java -XX:-UseBASE64Intrinsics -jar <app>.jar"

We will update the Java versions available on Clever Cloud as soon as Eclipse Temurin publishes its fixed releases.

Managed and serverless services

Several Clever Cloud services rely on Java and received the same mitigation:

You have nothing to do for these services.

If you have any questions or need help, contact Clever Cloud support.

Last updated on