Dev & EngARTICLE

5 min read

Java4Shell vulnerability exposes JVM in production: here's how to fix it now

JetBrains has confirmed that CVE-2026-114938, nicknamed Java4Shell, affects the JBR embedded in all its IDEs as well as the JDK running in production. There's a patch and a workaround, but they are separate fixes.

Java4Shell vulnerability exposes JVM in production: here's how to fix it now
Image: Bisneto Braga
Article · Dev & Eng
Reading
5 min

A JetBrains has confirmed that CVE-2026-114938, nicknamed Java4Shell, affects the JBR embedded in all its IDEs as well as the JDK running in production. There's a patch and a workaround, but they are separate fixes.

What Java4Shell is

On November 17, 2026, Oracle and the OpenJDK project published fixes for CVE-2026-114938, a memory corruption vulnerability in the HotSpot JVM's Base64 decoder. The issue was reported by a researcher who goes by Calif, who named the flaw Java4Shell. The advisory tracks the vulnerability as CWE-787, out-of-bounds write.

The mechanism is specific: on x86-64 CPUs with AVX-512 VBMI support, HotSpot uses an intrinsic routine to speed up decoding performed by java.util.Base64. Malformed input causes this routine to write past the end of a Java array, corrupting neighboring memory. According to JetBrains, the report's own authors demonstrated how this can turn into remote code execution in real server-side Java applications, not just in a lab scenario.

Who is actually exposed

Two conditions must be true at the same time for the risk to exist. First, the hardware: an x86-64 processor with AVX-512 VBMI, present in Xeon from Ice Lake onward, some 10th- and 11th-generation Core chips, and AMD Zen 4 and later. ARM64, including Apple Silicon, is not affected.

Expert views

What people are saying about it.

Oracle's November 2026 CSPU brings ten fixes for MySQL, three of them exploitable over the network without login. Percona has already merged the fixes into version 8.4 and details what can be mitigated now.

Roberto Dinizin an iMasters article · Read the article: Oracle fixes three critical MySQL flaws exploitable without authentication

Kubernetes 1.38, expected on December 16, 2026, drops environment variables used in scripts, retires a legacy cgroup mechanism, and changes swap behavior. Here's what to review before upgrading your cluster.

Rafael Oliveirain an iMasters article · Read the article: Kubernetes 1.38 comes with changes that can break CI/CD and legacy nodes

Vercel announced Audited ZDR, an independent audit layer that verifies, in practice, whether inference providers actually delete prompts and completions after processing.

Carina Ferreirain an iMasters article · Read the article: Vercel launches Audited ZDR on AI Gateway to prove AI doesn't keep your data

Second, the usage: the process needs to decode Base64 coming from an untrusted source, such as data received from a network peer. A local script that only decodes strings generated by the program itself is not on the exploitation path.

In terms of versions, the range is wide. OpenJDK lines 17.0.6 onward, 21, 25, and 27 are affected across practically every distribution. Oracle's Java SE 8 Performance Pack (8u511-perf and earlier) is also on the list, but standard Java 8 and Java 11 builds don't use the intrinsic routine and are not affected.

Two fixes, two different surfaces

Here's the point that matters most for anyone who codes in Java day to day: updating the IDE doesn't fix the whole problem. Every JetBrains IDE, from IntelliJ IDEA to GoLand, Rider, PhpStorm, PyCharm, CLion, RubyMine, RustRover, DataGrip, and the CLI HTTP Client, embeds the JetBrains Runtime (JBR), which is based on OpenJDK. Versions bundling JBR 17.0.6+, 21, or 25 are on the risk list, including remote development backends.

The IDE update adds -XX:-UseBASE64Intrinsics to the default VM options, which disables the vulnerable routine only in the IDE process. This protects the editor against a crash or RCE in the IDE process. But it doesn't touch the JDK your project uses for build, test, and run: the Gradle daemon, Maven daemon, tests, and run configurations run under the JDK configured in the project, not under the IDE's JBR.

In short: these are two separate patch targets, and forgetting the second one leaves the production application exposed even with an updated IDE.

How to apply the fix now

For the IDE, the path is straightforward: download the latest version from the JetBrains website or use the automatic update in the Toolbox App (which also needs to go to 3.9.2) or in Help | Check for Updates. ReSharper needs to go to 2026.3.0.2, 2026.2.5.1, 2026.1.5.4, 2025.3.5.4, or 2025.2.6.3, depending on which line you follow.

Anyone who can't update the IDE right away has a one-line workaround: open Help | Edit Custom VM Options, add -XX:-UseBASE64Intrinsics on a new line, save, and restart. JetBrains is careful to warn: don't use -XX:UseAVX=2, even though some public advisories suggest that flag, because it prevents JBR 25 from starting on ARM64.

For the project's JDK, the process is what every Java team already knows from other critical CVEs:

  1. Identify the distribution in use (Oracle, Eclipse Temurin, Amazon Corretto, or another).
  2. Update to the vendor's fixed build. Oracle fixed it in 17.0.21.1, 21.0.13.1, 25.0.5.1, and 27.0.1.1; other vendors use their own numbering, so it's worth checking each one's advisory.
  3. Until the update is complete, also start these JVMs with -XX:-UseBASE64Intrinsics as a temporary mitigation.

Confirming the mitigation is active

To find out whether the CPU in use supports AVX-512 VBMI on Linux, JetBrains points to the instructions in Calif's own write-up, in the section on affected products. To confirm that an IDE is already running with the flag active, the jcmd <pid> VM.flags command shows the VM options in use by the process, including those added via the custom VM options file. This is especially useful for anyone who maintains a custom options file or runs a remote development backend, in which case the process may be on a different machine than the local workstation.

What changes for those running Java in production here

As of the advisory's publication, JetBrains had no record of active exploitation against its own IDEs. That doesn't reduce the urgency: Calif's write-up already demonstrates exploitation in server-side applications, and x86-64 cloud instances with AVX-512 VBMI support aren't uncommon in production environments. It's worth checking /proc/cpuinfo for avx512vbmi before assuming the environment is out of risk.

Disabling the intrinsic routine via -XX:-UseBASE64Intrinsics has a real cost: Base64 decoding falls back to the standard implementation, which is slower. For most services this is irrelevant, but API gateways, authentication services that decode tokens at high volume, or upload pipelines that carry Base64 payloads may see a CPU regression on the critical path. It makes sense to measure before and after applying the flag in production, rather than assuming the impact is negligible.

Another point that often gets overlooked: remote development backends (Gateway) usually run on x86-64 cloud machines that support AVX-512 VBMI, exactly the exposed profile. Anyone using Gateway or RustRover/CLion with remote development needs to update the backend, not just the local client, or add the flag to the custom options on the server side.

Translated from the Brazilian Portuguese original · Read the original

Read also