
Java4Shell (CVE-2026-114938) is a memory-corruption flaw in OpenJDK's Base64 decoder. It can allow remote code execution (RCE) on affected x86-64 systems using AVX-512 VBMI. On November 17, 2026, Calif reported that its researchers had run code before authentication on the Jenkins and Keycloak deployments they tested. The fix is to update the Java virtual machine (JVM) that runs the application and restart the service on the patched build. Calif's disclosure and OpenJDK's security advisory.
A login service may need to decode a credential before it can decide whether to accept it. Base64 represents bytes as text for just this kind of exchange. In Calif researcher Quang Luong's tests, Java threw the expected exception for malformed input. By the time the application could catch it, the decoder had already written past the end of its output array. Another object in the same process could already have changed. Calif's account of the decoder flaw.
The processor matters because HotSpot, OpenJDK's virtual machine, can substitute a hand-written machine-code routine for an ordinary Java operation. This optimization is called an intrinsic. On x86-64 processors with the AVX-512 VBMI instruction set, HotSpot can use an intrinsic to decode many bytes at once. The flaw was in that routine. The patched decoder keeps writes inside its output array when it rejects malformed input. Red Hat's Java4Shell bulletin.
In the affected JVM, the error arrives after another object may have changed. In the patched JVM, the neighboring object stays intact.
No. Native ARM64 (AArch64) JVMs use a different Base64 decoder and are unaffected by CVE-2026-114938. That includes the ARM64 build of Amazon Corretto on AWS Graviton. If the same login service also runs on x86-64 VMs, check each guest's JDK build and whether its JVM can use AVX-512 VBMI. Amazon Linux advisory and Red Hat's hardware guidance.
OpenJDK's November advisory flags the 17, 21, 25, and 27 release lines for this CVE. On the 17 line, the affected code dates back to 17.0.6. Match the full version and distributor to the runtime you ship. Vendors can backport an optimization or a fix on different schedules. OpenJDK risk matrix and Red Hat bulletin.
For Oracle JDK, the table pairs an affected build on each of those four lines with its November 17 replacement. Oracle also identifies a Java 8 performance build (8u511b33-perf) and specific GraalVM builds in its advisory. Check the corresponding vendor release for those editions and other OpenJDK distributions. Oracle Java SE risk matrix and Oracle's November 17 security baselines.
| Oracle JDK line | Affected build listed by Oracle | Fixed Oracle build on November 17, 2026 |
|---|---|---|
| 17 | 17.0.21.0.3 | 17.0.21.1+4 |
| 21 | 21.0.13.0.3 | 21.0.13.1+4 |
| 25 | 25.0.5.0.3 | 25.0.5.1+4 |
| 27 | 27.0.1.0.3 | 27.0.1.1+4 |
Suppose the host under a sign-in service has received its Java update, but the container image still bundles October's JDK. Restarting that container starts October's Java again. An application dependency scan can miss the same detail because the runtime can come from a base image or a vendor installation.
jcmd <pid> VM.version in the service's environment with the same effective user and group as the JVM. This queries the process handling requests. Oracle's jcmd reference.Code running inside a compromised JVM can use the permissions of that process. Consider a private Jenkins controller running a compatibility test. Engineers need the console, and the test job needs to read one PostgreSQL view in staging. Those are two separate grants.
Restrict who can reach the controller. Keep Jenkins on a private network and allow only Adaptive's broker to reach the console. Require single sign-on and MFA before engineers can launch Jenkins from Adaptive's app catalog. A containerized browser in an isolated sandbox opens the private Jenkins URL. Engineers interact with the streamed console through Adaptive, without direct access to that URL. For a public customer login service, prioritize the JVM update and apply these access controls to its private administration interfaces. Adaptive's Jenkins integration and isolated browser sessions.
Principle of least privilege. Give the job its own Adaptive workload identity. Broker its database connection, keep the database password in the vault, and grant its PostgreSQL role read access to the staging view. Retire the old shared credential and restrict direct database connections. Code running as the job could still read that view. A write using the same role would be denied. Give release engineers a separate, expiring grant for production changes. Workload identities and just-in-time authorization.
Audit logs for user and data activity. If the controller shows signs of compromise, correlate its host and JVM events with the queries Adaptive recorded for the job's brokered sessions. That lets responders ask which data the identity read during the exposure window. Revoke the affected grant, close existing sessions at the destination, and rotate any reusable credentials the process could read. Adaptive audit logs and credential rotation.
Q: Is Java4Shell the same vulnerability as Log4Shell?
They affect different components. Java4Shell (CVE-2026-114938) affects the Java runtime's Base64 decoder. Log4Shell (CVE-2021-44228) affects the Apache Log4j Core logging library. Each component has its own update. OpenJDK advisory and Apache Logging Services advisory.
Q: Can Java4Shell affect a Java client with no public endpoint?
Yes. Calif describes a demonstration in which a Java client was compromised while connecting to a malicious TLS server. Include outbound workers and scheduled jobs that connect to untrusted services when inventorying affected runtimes. Calif's client-side finding.
Q: Is there a temporary mitigation if a JDK update has to wait?
Red Hat documents the JVM startup option -XX:-UseBASE64Intrinsics for affected OpenJDK deployments. It disables the optimized Base64 implementation. Apply it to the service's launch configuration, restart the JVM, and verify the effective setting. Keep the vendor's fixed build on the rollout schedule. Red Hat's mitigation guidance.
Q: What protection can Adaptive provide while a public Java service awaits a patch?
Adaptive can restrict access to private administration interfaces and limit which databases or other supported resources a compromised service can reach through the broker. Public requests still reach the application's decoder. That path needs the vendor's JVM fix or its supported temporary mitigation. Adaptive workload access and Red Hat's mitigation guidance.
Read this article as Markdown or plain text.

