Introduction
Java4Shell (CVE-2026-114938) is a critical vulnerability in the Base64 decoder of the Java Virtual Machine (JVM). The Common Vulnerability Scoring System (CVSS) version 4.0 rates it 9.2. Malformed Base64 input corrupts memory and leads to remote code execution.
The vulnerability affects Java 17, 21 and 25 on x86-64 CPUs that support Advanced Vector Extensions 512 Vector Byte Manipulation Instructions (AVX-512 VBMI). Java 11 and ARM64 hosts are not affected.
This article covers apps that run on infrastructure the organization manages. Mendix Cloud and Mendix Cloud Dedicated apps are already protected, and redeploying them is still recommended. Public KBA: Impact of Java4Shell (CVE-2026-114938) vulnerability on Mendix Cloud
Environment
- Applications hosted in Mendix on Kubernetes
- Applications hosted in Mendix on Azure
- Private Mendix Platform
- Applications hosted in SAP Business Technology Platform
- Applications hosted in On-Premises
- Applications deployed with Docker
- Applications deployed with Mendix Portable Runtime
Instructions/Procedure
Select the section that matches the platform. Installing the patched Java release is the recommended fix. The JVM option in Apply the JVM option is a mitigation for environments where the patched release is not available yet.
Mendix on Kubernetes, Mendix on Azure and Private Mendix Platform
Red Hat provides the fix in the ubi8 and ubi9 Universal Base Image (UBI) base images. Mendix on Azure uses ubi9. To apply the fix, redeploy each affected app:
- Check the base image of the environment in the runtime base image documentation.
- Create a new deployment package (.mda) of the app.
- Deploy the package. The deployment rebuilds the app image on the patched base image.
The registry that provides the patched base images depends on the Private Mendix Platform version:
- Version 1.24 and 2.8.0:
private-cloud.registry.mendix.com/app-building-blocks - Version 2.8.1:
registry.mendix.com/private-cloud/app-building-blocks
If you mirror the base images to your own registry, pull the latest images into that registry before you redeploy.
On Private Mendix Platform, rebuild the images of apps in user environments with the steps above. For the Private Mendix Platform portal itself, do one of the following:
- For existing installations: add
-XX:-UseBASE64Intrinsicstospec.runtime.environmentVariables.JAVA_TOOL_OPTIONSin the Private Mendix Platform custom resource (CR). To edit the CR, runkubectl edit mendixapp <pmp-cr-name>. - For upgrades: the upcoming Private Mendix Platform release 2.8.2 includes the fix.
The fix is not available yet for the Red Hat Hardened Image base image. Apply the JVM option until Red Hat publishes the update.
SAP Business Technology Platform
Until an update is available, add -XX:-UseBASE64Intrinsics to the JAVA_OPTS environment variable and apply the changes. JAVA_OPTS is a JSON list ["-XX:-UseBASE64Intrinsics"]
On-premises servers, Docker and Mendix Portable Runtime
These deployments use a Java installation that the organization manages. Install a fixed release from the Java vendor, or apply the JVM option and restart the app. See the vendor advisory for fixed versions.
-
Windows servers with Mendix Service Console: install the fixed Java release and select it for the app, or add
-XX:-UseBASE64Intrinsicsto the JVM parameters of the app. Restart the app. -
Linux servers with m2ee-tools: install the fixed Java release, or add
-XX:-UseBASE64Intrinsicsto thejavaoptslist in m2ee.yaml. Restart the app. -
Docker (Mendix Docker buildpack): set the environment variable
JAVA_TOOL_OPTIONS=-XX:-UseBASE64Intrinsicson the container and restart it. -
Mendix Portable Runtime: rebuild the container image on a base image or Java distribution that contains the fix. Until then, set the environment variable
JAVA_TOOL_OPTIONS=-XX:-UseBASE64Intrinsicsfor the app process or container, and restart it.
If JAVA_TOOL_OPTIONS already contains options, add -XX:-UseBASE64Intrinsics to the existing value, separated by a space.
Apply the JVM option
The -XX:-UseBASE64Intrinsics option disables the vulnerable code, regardless of the hardware. A restart applies it, and a rebuild is not required. For Mendix on Kubernetes and Mendix on Azure, follow these steps:
- Add
-XX:-UseBASE64Intrinsicsto Custom JVM Options of the environment. - Restart the app.
No central setting applies the option to all environments, so repeat the steps for each environment. Do not use -XX:UseAVX=2 instead, because the JVM fails to start on ARM64 hosts.
To verify that the option is active, run java -XX:+PrintFlagsFinal -version with the same JVM options as the app. In the output, UseBASE64Intrinsics has the value false.
Outcome
After the app runs on a patched base image or Java release, or after the JVM option is applied and the app restarts, the app no longer runs the vulnerable Base64 code.
Additional information
- Mendix documentation:
- Other documentation: Red Hat security bulletin RHSB-2026-018
- Related KBA: Impact of Java4Shell (CVE-2026-114938) vulnerability on Mendix Cloud
0 Comments