Java4Shell and ColdFusion

by Pete Freitag

Oracle has released security patches for Java today, with one of the vulnerabilities gaining a lot of attention, and being dubbed as "Java4Shell". This vulnerability CVE-2026-114938 affects Java 17 and above according to the openjdk advisory. This means that if you are running Java 8*, or Java 11 on your ColdFusion or Lucee server then you should not be impacted by this particular vulnerability, however there were other vulnerabilities patched in this update, so you should still apply it.

What is the vulnerability?

The vulnerability exists in Java's Base64 decoder implementation on systems. Java implements CPU optimizations on x86 systems that support the AVX-512 VBMI instruction set.

Are you vulnerable?

If you are running a JVM that hasn't been patched then you might be vulnerable, applying the latest Java Security Updates is highly recommended! But because the vulnerability requires the AVX-512 VBMI, you can also check and see if your server CPU supports it.

Checking to see if your server CPU supports AVX-512 with java

One of the easiest ways I've found to check is to run java -version with -XX:+PrintFlagsFinal

java -XX:+PrintFlagsFinal -version 

If you are on linux you can use grep to filter out the UseAVX, and UseBASE64Intrinsics flags, which are of importance to this vulnerability:

java -XX:+PrintFlagsFinal -version | grep -E 'UseAVX|UseBASE64Intrinsics'

On Windows pipe to findstr instead of grep to filter the output:

java -XX:+PrintFlagsFinal -version | findstr "UseAVX UseBASE64Intrinsics"

On a server that supports AVX-512 instructions you would see a value of 3 for the UseAVX flag. If the value is 2, then AVX-512 is not enabled. Here's what I see on a server that doesn't support it:

int UseAVX                                   = 2                                    {ARCH product} {default}
bool UseBASE64Intrinsics                      = true                                      {product} {default}
openjdk version "21.0.13.1" 2026-11-17 LTS
OpenJDK Runtime Environment Corretto-21.0.13.1.2 (build 21.0.13.1+2-LTS)
OpenJDK 64-Bit Server VM Corretto-21.0.13.1.2 (build 21.0.13.1+2-LTS, mixed mode, sharing)

You can see above that UseAVX = 2, and UseBASE64Intrinsics = true.

Checking if your CPU supports AVX-512 VBMI on linux

On linux you can run the following command to see if your CPU supports the AVX-512 instruction via /proc/cpuinfo:

grep -o 'avx512vbmi' /proc/cpuinfo

If it outputs avx512vbmi then it supports AVX-512 VBMI instruction set needed for the vulnerable code path.

Checking if your CPU supports AVX-512 VBMI on windows

On windows (or linux) you can java to list the cpu flags:

java -Xlog:os+cpu -version

You'll want to look for something like avx512_vbmi in the output.

Checking your JVM at runtime

You can check your CFML engine at runtime with the following code:

function getVMOption(required string name) {
    var mbs = createObject("java", "java.lang.management.ManagementFactory").getPlatformMBeanServer();
    var bean = createObject("java", "javax.management.ObjectName").init("com.sun.management:type=HotSpotDiagnostic");
    var opt = mbs.invoke(bean, "getVMOption", [ arguments.name ], javaCast("string[]", [ "java.lang.String" ]));
    return opt.get("value");
}
writeOutput("UseBASE64Intrinsics: " & getVMOption("UseBASE64Intrinsics") & "<br>");
writeOutput("UseAVX: " & getVMOption("UseAVX"));

Depending on engine, and setup you may need the JVM arg: --add-exports=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED for the above code to work. It would throw a java.lang.reflect.InaccessibleObjectException in that case.

Mitigations

Again, updating the JVM to the latest version is your best course of action, these mitigations have not been published by Oracle or OpenJDK, so use at your own risk, and conduct testing before applying them.

Set UseBASE64Intrinsics to false

Set a JVM argument to disable UseBASE64Intrinsics

-XX:-UseBASE64Intrinsics

The - in front of UseBASE64Intrinsics tells the jvm to set the value to false, without it, it would set to true (the default).

Set UseAVX=2

If UseAVX is set to 3, you can reportedly set the JVM argument to 2 to mitigate this issue. This might impact other CPU optimizations that the JVM performs, besides the Base64 optimization however.

-XX:UseAVX=2

Checking JVM flags at runtime

You can check the value of a JVM flag at runtime by passing the process id of a running jvm process to jinfo, a tool located in Java's bin directory.

jinfo -flag UseBASE64Intrinsics 12345

It will output the flag that the running JVM is using. If you are using a JVM flag mitigation, I would suggest double checking that you have set it properly with this method.

Does my ColdFusion, Lucee or Boxlang Application use Java's Base64.Decoder?

There is a good chance a library will call java.util.Base64.getDecoder() which returns a java.util.Base64.Decoder instance.

Determining if your CFML application might use the java.util.Base64.Decoder class is not as easy as you might think. There are a lot of ways base64 decoding might happen internally within a CFML engine.

In CFML you can Base64 decode a string with the binaryDecode(x, 'base64') function, based on my testing (using jarlock) Adobe ColdFusion appears to use their own Base64 decoder for that operation. However if you use the URL safe method: binaryDecode(x, "base64url") it does hit the vulnerable decoder.

Lucee's binaryDecode appears to use its own Base64 decoder implementation lucee.commons.digest.Base64Encoder.decode(), and doesn't appear to invoke java.util.Base64.Decoder when you call binaryDecode() in CFML.

BoxLang, because it is a newer CFML engine takes advantage of the builtin Base64 decoder provided by the JVM, and will use java.util.Base64.Decoder for binaryDecode() invocations [source].

However, you have to look at more than just the CFML engine. In order to rule out that your application doesn't invoke java.util.Base64.Decoder you'll need to check every jar file, and see if it invokes the builtin Base64 decoder. This includes all ColdFusion packages, Lucee Extensions, or Boxlang modules that you may be using. It also includes your servlet container (Tomcat, Undertow, JBoss, Weblogic, etc).

Tomcat uses java.util.Base64.Decoder in a number of different places, including basic auth implementation, structured field parser HTTP2 implementation, to name a few.

Beyond that even the JVM itself may make calls to the Base64 decoder, for example when verifying signed jars.

Given all of the above it is pretty safe to assume that your CFML application could call Java's builtin Base64 decoder in certain circumstances.

Java Versions Impacted

The OpenJDK advisory lists Java 17 and up, however the CVE-2026-114938 record lists Java 8u511b33-perf as affected. This is presumably a high performance build of Java 8 that Oracle must publish, and backport performance optimizations to. So if you are using 8u511b33-perf you would also be impacted.

This vulnerability impacts all OpenJDK based versions of Java, including Oracle Java, Amazon Corretto, Eclipse Temurin, Ubuntu OpenJDK, etc.

If you are using Ubuntu OpenJDK, please keep in mind that they often take a few days to update their packages. Ubuntu openjdk-21 21.0.13.1+2-1 was published 2026-11-18 at 23:15 (around 48 hours after the CVE was published).

The Eclipse Temurin build also appears to be rolling out very slowly, so you may want to temporarily consider a different vendor such as Amazon Corretto.

The Fixinator Code Security Scanner for ColdFusion & CFML is an easy to use security tool that every CF developer can use. It can also easily integrate into CI for automatic scanning on every commit.