Watch Floor

Java4Shell (CVE-2026-114938) Detection Runbook

Last updated 18 Nov 2026. Vendor guidance is changing daily; see Caveats and sources at the end before acting.

Read this first

Internal-only hits are still in scope, and the perimeter WAF will not protect them. The controls that matter for internal hosts are the JVM workaround flag and CrowdStrike, in that order.

Copying rules. Use the Copy button on each code box. The queries, regexes and commands below have not been run in any production tenant: test each one in yours before you turn on alerting or blocking.

What the bug is. A malformed Base64 string makes the JVM write past the end of a heap buffer. Any Java code that decodes attacker-supplied Base64 can reach it: login headers, tokens, cookies, file uploads. Outcomes are a JVM crash, a memory leak of keys and tokens, or code execution. No in-the-wild exploitation is confirmed as of 18 Nov 2026.

A host is exploitable only if all three are true:

  1. Java is 17.0.6 or later, 21, 25 or 27, and below the vendor's fixed build. Java 8 and 11 are not affected (except Oracle's Java 8 Enterprise Performance Pack).
  2. The CPU is x86-64 with all four flags: avx512f, avx512bw, avx512vbmi, bmi2. ARM64 is not affected.
  3. The JVM flag UseBASE64Intrinsics is true. That is the default.

Why "it's only internal" is not a reason to relax:

  • A Qualys internal-scan hit says where the scanner saw the host. It does not prove nothing external routes to it. Reverse proxies, Cloudflare Tunnel, VPN portals and partner links all count. Section 3 and section 5 include the check.
  • Kafka, Solr, Elasticsearch, Gerrit and Spinnaker are reported exploitable after login. Any internal foothold or insider reaches those.
  • There is a client-side path. A Java program that connects out over TLS to an attacker-controlled server can be compromised without listening on any port.
  • Cloudflare never sees internal east-west traffic.

Order of work:

  1. Scope: Qualys (section 2) and Wiz (section 3).
  2. Mitigate: set the JVM flag and restart (section 7). This is faster than waiting for vendor builds.
  3. Detect: CrowdStrike rules and hunts (section 4).
  4. Edge: Cloudflare rule for anything that is proxied (section 5).
  5. Patch as each vendor ships a fixed build (section 7).

Qualys: build the host list

Qualys is the system of record for which hosts are affected. Everything else in this runbook works from the list it produces.

Step 1. Confirm the signatures are loaded. Qualys announced three detections in VULNSIGS-2.6.747-3. Check your scanner and agent manifest version is at or above that.

QIDWhat it detects
389494OpenJDK Java4Shell (CVE-2026-114938)
389610Oracle Java SE November 2026 Critical Patch Update
389608Amazon Corretto 17, 21, 25, 27 security update

Step 2. Pull current findings. In VMDR, Vulnerabilities tab, run:

Code 1
vulnerabilities.vulnerability.qid:389494 or vulnerabilities.vulnerability.qid:389610 or vulnerabilities.vulnerability.qid:389608

Cross-check with the CVE token, which also catches distribution QIDs Qualys adds later:

Code 2
vulnerabilities.vulnerability.cveIds:CVE-2026-114938

Step 3. Find Java the QIDs may have missed. Qualys's published inventory query only covers 17.x. In the Assets tab, run this wider version and compare against step 2:

Code 3
software:(name:"OpenJDK" and version>=17.0.6)

Then repeat with each distribution name your estate uses: Temurin, Corretto, Zulu, Liberica, SapMachine, GraalVM, Java SE. Any host here that is not in step 2 needs a manual version check.

Step 4. Tag the result. Create a dynamic tag named Java4Shell-InScope from the step 2 query. Use that tag for dashboards, patch jobs and the CrowdStrike host group in section 4.

Step 5. Add the CPU check as a priority column, not a filter. On each tagged Linux host, run:

Code 4
grep -m1 '^flags' /proc/cpuinfo | tr ' ' '\n' | grep -cE '^(avx512f|avx512bw|avx512vbmi|bmi2)$'

Output 4 means the CPU can run the vulnerable path. Anything lower means it cannot today. Do not close findings on a lower number: a VM resize or live migration can move the workload onto an affected CPU.

Known blind spots. Check each one by hand once.

  • Bundled runtimes. Jira, Confluence, Jenkins, Keycloak, Elasticsearch, Logstash and Cassandra ship their own JDK under the application directory. Pick one known Jira or Jenkins host and confirm Qualys reported its bundled JDK. If it did not, section 3 and the find command in section 7 cover the gap.
  • Unauthenticated scans. Version-based detections need the Cloud Agent or an authenticated scan. Treat any host scanned without credentials as unknown.
  • Containers. The image pins its own JDK. Host scans do not see inside it.

Wiz: find what Qualys cannot see and test the "internal only" claim

Wiz covers cloud workloads only. Use it for two jobs: bundled and container JDKs, and proof of whether an affected workload is reachable from outside.

Step 1. Open the advisory. Threat Center, search CVE-2026-114938, open the Java4Shell advisory and run its pre-built query. Wiz has published one for customers.

Step 2. Split the results three ways and save each as a view.

ViewFilter to addWhy
ExposedResource has internet exposurePatch or flag these first
ContainersResource type is container image or containerOS patching will not fix these; the image must be rebuilt
Not in QualysExport and diff against the Qualys tagThese are the bundled JDKs Qualys missed

Step 3. Test the internal-only assumption. For every Qualys-tagged host that lives in cloud, open it in the Security Graph and check its network exposure path. A load balancer, API gateway or public IP in the path means it is perimeter-facing, whatever the scan zone says.

Step 4. Rank by blast radius. Within each view, sort to the top anything that is an identity provider (Keycloak, PingFederate), holds admin-level cloud permissions, or has access to secrets stores. A memory leak from those exposes keys and tokens.

Step 5. Turn on the alert. Create a Wiz Issue rule or automation from the Exposed view so a newly deployed vulnerable workload raises a ticket without anyone re-running the query.

Limits. Wiz does not see on-prem hosts. The Wiz advisory lists no runtime sensor detections for this CVE; if you run the Wiz Sensor, check its detection feed directly.

CrowdStrike: the main detection layer for internal hosts

CrowdStrike is the only tool here that can see an exploit attempt against an internal host. No public Falcon-specific coverage for this CVE was found as of 18 Nov, so the rules below are written from the published behavior of the bug. Run every query in your tenant and tune it before turning on alerting.

Step 1. Create a host group. Name it Java4Shell-InScope and populate it from the Qualys tag. Scope the rules below to that group first, then widen to all servers.

Step 2. Check Spotlight. Search CVE-2026-114938 in Exposure Management. If it returns hosts, diff them against Qualys. If it returns nothing, that means no content yet, not that you are clean.

Step 3. Create a Custom IOA rule group (Endpoint security, Custom IOA rule groups). Create one group per platform, set every rule to Detect for 48 hours, then move rule A to Prevent on hosts that have no reason to spawn shells.

Rule A. Java spawns shell. Platform Linux, rule type Process Creation.

Parent Image Filename:

Code 5
.*/java

Image Filename:

Code 6
.*/(sh|bash|dash|zsh|ksh|curl|wget|nc|ncat|socat|perl|python[0-9.]*)

Rule B. Java spawns shell. Platform Windows, rule type Process Creation.

Parent Image Filename:

Code 7
.*\\javaw?\.exe

Image Filename:

Code 8
.*\\(cmd|powershell|pwsh|certutil|bitsadmin|mshta|rundll32|curl)\.exe

Rule C. JVM crash dump. Platform Linux and Windows, rule type File Creation.

File Name:

Code 9
.*hs_err_pid[0-9]+\.log

Severity High for A and B, Medium for C. Jenkins controllers and build agents spawn shells all day. Put them in a separate host group and exclude it from A and B, or you will bury the team.

Step 4. Save these as scheduled searches in Advanced Event Search (NG-SIEM). Run each hourly over the last 60 minutes.

Java starting a shell or download tool:

Code 10
#event_simpleName=ProcessRollup2
| ParentBaseFileName=/^javaw?(\.exe)?$/i
| FileName=/^(sh|bash|dash|zsh|ksh|curl|wget|nc|ncat|socat|perl|python[\d.]*|cmd\.exe|powershell\.exe|pwsh\.exe|certutil\.exe|bitsadmin\.exe|mshta\.exe)$/i
| groupBy([ComputerName, FileName, CommandLine], function=count())

A Java service restarting repeatedly. Failed exploit attempts crash the JVM and retries often work, so a restart loop is the best early signal:

Code 11
#event_simpleName=ProcessRollup2
| FileName=/^java(\.exe)?$/i
| groupBy([ComputerName, CommandLine], function=count(as=starts))
| starts >= 3

Java connecting out to a public address:

Code 12
#event_simpleName=NetworkConnectIP4
| ContextBaseFileName=/^javaw?(\.exe)?$/i
| !cidr(RemoteAddressIP4, subnet=["10.0.0.0/8","172.16.0.0/12","192.168.0.0/16","127.0.0.0/8","169.254.0.0/16"])
| groupBy([ComputerName, RemoteAddressIP4, RemotePort], function=count())

For the third query, run it once over 30 days to build an allowlist of normal destinations (package mirrors, SaaS APIs, licence servers). Alert only on destinations not in that list.

Step 5. Sweep for crash files already on disk. Falcon does not record every Linux file write, so do not rely on rule C alone. Run this through Real Time Response on each in-scope Linux host, daily until patched:

Code 13
find / -xdev -name 'hs_err_pid*.log' -mtime -7 2>/dev/null
journalctl --since '7 days ago' | grep -iE 'libjvm|fatal error has been detected by the Java Runtime'

Any hit goes to triage (section 8).

Cloudflare: one custom rule, only for what is proxied

This rule protects only traffic that passes through Cloudflare. It does nothing for the internal Qualys hits unless those hosts are origins behind a proxied hostname or published through Cloudflare Tunnel.

Step 1. Check for a managed rule first. Security, WAF, Managed rules, search the Cloudflare Managed Ruleset for 114938 or Java4Shell. None was confirmed as of the morning of 18 Nov. If one exists, enable it and still deploy the custom rule in Log mode as a second signal.

Step 2. Find out which in-scope hosts sit behind Cloudflare. Give the network team the Qualys host list. They check it against proxied DNS record origins and Tunnel public hostnames. Anything that matches is perimeter-facing and moves to the top of the patch list.

Step 3. Create the custom rule. Security, WAF, Custom rules, Create rule, Edit expression. The matches operator needs a Business or Enterprise plan.

Rule name: Java4Shell CVE-2026-114938 malformed Base64

Code 14
(any(http.request.headers["authorization"][*] matches r#"(?:^|[^A-Za-z0-9+/_-])(?:[A-Za-z0-9+/_-]{4}){8,}(?:[A-Za-z0-9+/_-]?={1,2}|[A-Za-z0-9+/_-]{2}=|[A-Za-z0-9+/_-]{3}==)(?:[^=]|$)"#))
or (any(http.request.headers["proxy-authorization"][*] matches r#"(?:^|[^A-Za-z0-9+/_-])(?:[A-Za-z0-9+/_-]{4}){8,}(?:[A-Za-z0-9+/_-]?={1,2}|[A-Za-z0-9+/_-]{2}=|[A-Za-z0-9+/_-]{3}==)(?:[^=]|$)"#))
or (http.cookie matches r#"(?:^|[^A-Za-z0-9+/_-])(?:[A-Za-z0-9+/_-]{4}){8,}(?:[A-Za-z0-9+/_-]?={1,2}|[A-Za-z0-9+/_-]{2}=|[A-Za-z0-9+/_-]{3}==)(?:[^=]|$)"#)
or (url_decode(http.request.uri.query) matches r#"(?:^|[^A-Za-z0-9+/_-])(?:[A-Za-z0-9+/_-]{4}){8,}(?:[A-Za-z0-9+/_-]?={1,2}|[A-Za-z0-9+/_-]{2}=|[A-Za-z0-9+/_-]{3}==)(?:[^=]|$)"#)

What it matches. A Base64 or Base64url token of 32 or more characters that ends in = or == and whose total length is not a multiple of 4. Valid Base64 is always a multiple of 4, so legitimate tokens do not have this shape. The 32-character floor matches the reported trigger threshold for Java 21 and 25; Java 17 needs more than 128.

Step 4. Roll out in two stages.

  1. Action Log for 24 hours. Review every hit in Security Events.
  2. Change the action to Block.

Expected false positive. A query-string parameter whose name is 32 or more letters long will match on the query clause, because the name is followed by =. If Log mode shows these, drop the query clause for that hostname. The header and cookie clauses do not have this problem.

How this was tested. The regex was run in Python against 2.4 million valid Base64 and Base64url strings in header, cookie and query positions with zero matches, and against about 300,000 malformed strings with zero misses. It has not been run on Cloudflare's engine. Log mode is the test.

Step 5. Send the events to the SIEM. Confirm Logpush includes firewall events. Alert on any hit for this rule where the origin responded 200 or 5xx: 200 means the request reached Java, 5xx may mean it crashed it.

Limits. The team must know these.

  • Request bodies are not covered. JSON and form bodies carry Base64 too. On Enterprise, add a fifth clause on http.request.body.raw with the same regex.
  • Custom headers are not covered. Any application that reads a token from a header other than Authorization is unprotected.
  • Wiz and Qualys both state a proxy or WAF cannot cover every path into the decoder. Treat a clean WAF log as no evidence of safety.

Black Duck: limited use for this CVE

Black Duck will not find this through dependency scanning, because the flaw is in the Java runtime and not in a library your code imports. Do not let the team report a clean Black Duck scan as evidence of anything.

Two things it can still do:

  1. Container and binary scans. If you run Black Duck Binary Analysis or container image scanning, search the BOMs for JDK or JRE components (OpenJDK, Temurin, Corretto, Zulu) at 17.0.6 or later, 21, 25 or 27. That gives the list of images to rebuild.
  2. A policy for new builds. Add a policy rule that flags any image whose JDK component is below the fixed build for its line (table in the next section). Set it to warn first. Block once every base image you use has a fixed tag available.

Owner for the base-image rebuilds is the platform or DevOps team, not detection.

Mitigate and verify on the host

Setting one JVM flag and restarting removes the vulnerable code path today, without waiting for a vendor build. The flag comes from the researchers (Calif) and is repeated by Qualys and Wiz. Oracle and OpenJDK have not confirmed it, so it is a stopgap and patching still has to follow.

The flag: -XX:-UseBASE64Intrinsics

Cost: slower Base64 decoding. Test on one node of anything that decodes Base64 in bulk before rolling wide.

How to set it

Where Java runsWhat to do
systemd serviceCreate a drop-in with Environment="JAVA_TOOL_OPTIONS=-XX:-UseBASE64Intrinsics", then systemctl daemon-reload and restart the service
ContainerAdd env var JAVA_TOOL_OPTIONS=-XX:-UseBASE64Intrinsics to the deployment spec and roll the pods
Windows serviceSet JAVA_TOOL_OPTIONS as a system environment variable, or add the flag to the service's JVM options, then restart the service
App with its own JVM config (Jira, Confluence, Jenkins, Keycloak, Elasticsearch)Add the flag to that product's JVM options file, then restart

One side effect to warn people about: with JAVA_TOOL_OPTIONS set, every Java start prints Picked up JAVA_TOOL_OPTIONS: ... to stderr. Scripts that parse Java's output can break on it.

How to prove it took. The setting only counts on the running process. For each Java process:

Code 15
jcmd -l
jcmd <pid> VM.version
jcmd <pid> VM.flags | tr ' ' '\n' | grep -E 'UseAVX|BASE64'

Pass is -XX:-UseBASE64Intrinsics in the output. If the line is missing or shows +, the process is still exposed.

Find every JDK on a host, including bundled ones:

Code 16
find / -xdev -type f -name release -path '*j*' 2>/dev/null | xargs grep -H '^JAVA_VERSION=' 2>/dev/null
ps -C java -o pid,cmd

Fixed builds

Vendor and lineFixed buildStatus on 18 Nov 2026
Oracle Java SE 1717.0.21.1Released
Oracle Java SE 2121.0.13.1Released
Oracle Java SE 2525.0.5.1Released
Oracle Java SE 2727.0.1.1Released
Oracle Java 8 Enterprise Performance Pack8u513-perfReleased
Amazon Corretto 1717.0.21.1.2Released
Azul Zulu 17, 21, 25, 27November updateReleased per Azul release notes
Eclipse TemurinNot confirmedCheck adoptium.net
Ubuntu, Debian, RHEL, Rocky, Alma packagesNot releasedRed Hat says fixes are being expedited

Other vendors use different build numbers. Confirm each vendor's advisory names CVE-2026-114938 before marking a host fixed, then restart the service. An updated package with an old JVM still running is still vulnerable.

When a detection fires

Treat any hit on an in-scope host as a possible exploit attempt until the steps below rule it out.

  1. Confirm the host is in scope. Is it in the Qualys tag, with CPU check output 4 and no workaround flag on the running process? If the flag is set or the build is fixed, downgrade to routine.
  2. Crash file found (hs_err_pid*.log). Open it and read the top stack frames. Frames naming Base64 decoding or StubRoutines point at this bug. Record the timestamp.
  3. Line up the request. Pull the application access log, reverse-proxy log and Cloudflare events for the two minutes before the crash. Look for a request carrying a Base64 value that ends in = with a length that is not a multiple of 4. Record the source address.
  4. Check the application log for bursts of IllegalArgumentException from java.util.Base64 in the same window. One researcher analysis reports every trigger throws this after the write has already happened.
  5. Check what Java did next. Run the first CrowdStrike query in section 4 for that host over the following hour: child processes, new files in application and temp directories, new cron entries or scheduled tasks, new outbound connections.
  6. If steps 2 to 5 show a matching request or any follow-on activity: network-contain the host in Falcon, open an incident, and rotate every secret that process held (session signing keys, service credentials, API tokens). The bug can leak heap memory even when code execution fails.
  7. If nothing matches: record it as an unexplained JVM crash, apply the workaround flag on that host now, and keep the host on a daily crash-file sweep.

Caveats and sources

This situation is under 48 hours old and vendor guidance is changing daily. Recheck the sources below before each shift acts on this document.

What has and has not been tested

  • The Cloudflare regex was tested in Python only. It has not run on Cloudflare's engine.
  • The CrowdStrike IOA values and queries were written from documented Falcon field names and have not been run in your tenant. Field availability varies by sensor version and platform.
  • The Qualys queries extend Qualys's own published example. The QIDs come from Qualys's blog, which listed their release as pending on 17 Nov.
  • No vendor has published payload indicators or confirmed crash signatures. The crash-frame guidance comes from a third-party hunting write-up.
  • Researchers disagree on severity: Oracle scores it 8.1 (CVSS 3.1), Calif scores it 9.2 (CVSS 4.0). One independent analysis says the bytes written are constant and not attacker-controlled, which would make code execution harder than the headlines suggest. Per-application exploits are being withheld.

Sources opened for this runbook

Seen in search results but not opened: Endor Labs (the IllegalArgumentException signal), a dev.to root-cause analysis (constant written bytes), The Hacker News (Azul fix), Precursor Security (VULNSIGS version).