NexlinksField Notes from a CTO & CISO
Menu
Practical perspectives on Microsoft technology. Read the November 2026 newsletter ↗

PRACTITIONER ARTICLE / Security

Java4Shell CVE-2026-114938: Detection and Patching

Find affected Java4Shell runtimes with Defender, Tenable and Qualys, check bundled Java installations, and verify remediation after applying vendor updates.

Published
By Phil Kinsley
In this article

Java4Shell (CVE-2026-114938) is a vulnerability in the Java runtime that can allow unauthenticated remote code execution or application crashes under certain conditions. Organizations should identify affected Java installations, prioritize exposed applications and apply updates from their runtime or application vendor.

For anyone who worked through Log4Shell in 2021, the inventory problem will feel familiar. This time the vulnerability is in the Java runtime itself. An application may ship with its own copy of Java, so updating the system installation may leave that application exposed.

Supporting reference: Microsoft OpenJDK critical patch update, November 18, 2026 ↗

Which Java versions are affected

Java4Shell affects unpatched builds in the Java 17 (from 17.0.6), 21, 25 and 27 release lines. Oracle also identifies certain Java 8 Enterprise Performance Pack and GraalVM builds. Other distributions based on OpenJDK may be affected, including Eclipse Temurin, Microsoft OpenJDK and Amazon Corretto. Check the full build against your vendor's advisory.

The vulnerability involves the hardware-optimized Base64 decoder and depends on the runtime configuration and processor capabilities. ARM64 is outside the currently described affected architecture. For virtual machines, assess the configuration presented to the guest. I would still inventory the runtimes across the environment rather than exclude entire groups of servers before checking them.

Supporting reference: Oracle November 2026 security advisory ↗

Supporting reference: CERT-EU advisory, November 18, 2026 ↗

How to scan for Java4Shell

Start with the tools you already have. Update their vulnerability detection content and search for CVE-2026-114938. Use agent-based or authenticated assessments so the scanner can inspect installed runtimes. Begin with internet-facing services and critical applications.

Java discovery checks
PlatformWhat to check
Tenable / NessusSearch for the CVE and review applicable local checks, including plugin 382681 for OpenJDK. Confirm discovery coverage and thorough-check settings.
Qualys VMDRReview QID 389494. Windows Deep Scan can extend discovery to Java installed in configured nonstandard directories.
Microsoft Defender Vulnerability ManagementLook for the CVE and review Java software inventory across onboarded devices. Verify that the CVE and affected build are covered.

Supporting reference: Tenable Nessus plugin 382681 ↗

Supporting reference: Qualys Java4Shell detection guidance ↗

Finding Java4Shell in Microsoft Defender

In the Microsoft Defender portal, search for CVE-2026-114938 in Vulnerability Management. Where Defender for Endpoint and the appropriate vulnerability management data are available, you can also use Advanced Hunting to retrieve recorded findings.

DeviceTvmSoftwareVulnerabilities
| where CveId == "CVE-2026-114938"
| project
    DeviceName,
    OSPlatform,
    SoftwareVendor,
    SoftwareName,
    SoftwareVersion,
    RecommendedSecurityUpdate
| order by DeviceName asc

This queries existing findings rather than starting a scan. If it returns nothing, check whether your devices are reporting current data and whether the vulnerability is covered. The vulnerability table is populated through Defender for Endpoint and is not ingested into Microsoft Sentinel by default.

I would also check the software inventory for Java distributions independently of the CVE. This gives you another way to identify installations that need reviewing.

DeviceTvmSoftwareInventory
| where SoftwareName contains "java"
    or SoftwareName contains "jdk"
    or SoftwareName contains "jre"
    or SoftwareName contains "temurin"
    or SoftwareName contains "corretto"
    or SoftwareName contains "zulu"
    or SoftwareName contains "liberica"
    or SoftwareName contains "sapmachine"
    or SoftwareName contains "graalvm"
| project
    DeviceName,
    OSPlatform,
    SoftwareVendor,
    SoftwareName,
    SoftwareVersion
| order by DeviceName asc

Treat these as candidates for review. Product naming and detection coverage vary, so a clean report is not enough to conclude you are unaffected.

Supporting reference: Defender software vulnerability table schema ↗

Supporting reference: Defender software inventory table schema ↗

How to find Java bundled with applications

Running java -version tells you which executable your shell found. It does not tell you which runtime a service is using. Review the service startup configuration, application installation directories, container images and vendor appliance advisories. Where an application has its own runtime, check its version and supported upgrade path with the application owner.

When you have multiple Java installations on a server, track them individually. Record the application, runtime vendor, full version, path and remediation owner so that you can verify the correct installation after patching.

Which Java updates fix CVE-2026-114938

Use the fixed release identified by the vendor of the affected runtime. Microsoft's November 18 update confirms the following Microsoft Build of OpenJDK versions contain the fix:

Fixed Microsoft Build of OpenJDK versions
Microsoft OpenJDK release lineFixed version
Java 1717.0.21.1
Java 2121.0.13.1
Java 2525.0.5.1

CERT-EU also lists 27.0.1.1 as a fixed Java 27 release. Other distributions may use different build numbers or backported fixes. For bundled Java, Java 8 performance builds and GraalVM, check the appropriate vendor guidance before replacing the runtime.

Supporting reference: Fixed Microsoft Build of OpenJDK versions ↗

Can Java4Shell be mitigated while patching waits

Yes. CERT-EU documents a temporary JVM configuration option to disable the affected optimization. Confirm the option with your application vendor, test it, restart the service and verify the setting. For Azure environments, Microsoft also provides Web Application Firewall guidance to help block known HTTP attack patterns. Restrict unnecessary access where possible. Treat these controls as temporary until the runtime can be patched.

Supporting reference: Microsoft Azure WAF mitigation guidance ↗

Supporting reference: CERT-EU temporary JVM mitigation ↗

How to verify remediation

Once you have applied the update, restart the affected Java processes and confirm the runtime actually in use. For containers, rebuild and redeploy the affected image and update the base image used by future deployments. Rescan and record any remaining exceptions with an owner and a remediation date.

Monitor for unexpected JVM crashes, unusual processes launched by Java and unexplained outbound connections. These are reasons to investigate, not proof that Java4Shell has been exploited. If you suspect a compromise, start your incident response process alongside remediation.

Primary source

Microsoft Defender vulnerability findings schema ↗

Continue reading

AI Is Finding Vulnerabilities Faster Than Teams Can Fix Them ↗

Deploying Microsoft Defender for Endpoint: Configuration, Validation, and Mistakes to Avoid ↗