- Standard audit tools do not detect intentionally malicious packages. Tools like npm audit and pip-audit focus on known vulnerabilities, not malware behavior. A newly published malicious package with no CVE or advisory can pass these checks undetected.
- The attack surface is trust, not just code. Typosquatting, dependency confusion, and malicious updates exploit package-manager resolution and implicit trust. Developers and CI pipelines may install packages without verifying their provenance or behavior.
- Registry controls are only one layer of defense. Registry scanning, malware detection, and maintainer 2FA reduce risk, but attackers exploit gaps between these controls. Effective protection combines behavioral analysis, dependency pinning, SBOM governance, and build-environment isolation.
Most teams will treat Java4Shell as a patching task: download the new JDK, restart, done. In our experience, that framing is exactly how a flaw in the runtime stays alive for months. Dependency scanners read your pom.xml and build.gradle. They do not see the JDK underneath. The real work is knowing which JVMs you run, on which CPUs, and which of them parse attacker-controlled Base64 before authentication.
Java4Shell at a Glance: A Critical OpenJDK Flaw, Disclosed on Patch Day
On November 17, 2026, security firm Calif disclosed Java4Shell (CVE-2026-114938), a memory-corruption flaw in the Base64 decoder of OpenJDK. The disclosure landed the same day Oracle shipped its November Critical Security Patch Update, which covers 11 Java SE vulnerabilities that Oracle says are all remotely exploitable without credentials. Calif says details leaked before the fix, so it published early.
Potential impact. Calif reports unauthenticated remote code execution in default configurations of Keycloak, Atlassian Jira, Atlassian Confluence, JFrog Artifactory, Jenkins and PingFederate, and authenticated RCE against Apache Kafka Broker, Apache Solr, Elasticsearch, Gerrit and Spinnaker. Some vendor write-ups list a few of the authenticated items as pre-auth, so treat that split as provisional. These are identity, build, artifact and collaboration systems. A compromise there is rarely contained to one host.
Inside the Bug: How a Base64 Decoder Writes 62 Bytes Past Its Buffer
The root cause. OpenJDK’s HotSpot JVM replaces the Java implementation of Base64$Decoder.decodeBlock with a hand-written x86-64 assembly intrinsic when the CPU exposes AVX-512 VBMI. C2 compiles it in and trusts it. Per Harness’s lab analysis, the intrinsic is never handed the destination array length and does not re-check bounds. The pure Java fallback stops at the first invalid group. The intrinsic keeps writing on certain non-canonical endings, such as unexpected trailing = padding, that the fallback would reject.
Wiz describes the trigger as a bounds miscalculation: a run of A characters followed by an equals sign (64 characters in current builds, 128 in older OpenJDK 17 builds) makes the output length calculation underflow. In Harness’s lab, a 98-byte output array received 160 bytes, so 62 bytes landed past the end of the buffer. With -XX:-UseBASE64Intrinsics, the same input wrote 96 bytes and nothing overflowed. Java then throws IllegalArgumentException, but the write has already happened.
Why it is easy to miss.
- The overflow depends on JIT state. A one-shot test against a cold JVM can look healthy, and ordinary valid decodes keep re-arming the vulnerable path on busy endpoints.
- The application usually returns a normal 401 or 400. Access logs do not distinguish the overflow from a mistyped password.
- The flaw sits below the application. Input validation in your own code does not help because the intrinsic is reached before the application can reject the value.
Attack vectors. Any attacker-controlled value that reaches java.util.Base64’s basic or URL decoder is a candidate: HTTP Basic credentials, JWT segments, SASL exchanges, SAML artifacts, CSRF tokens and MIME encoded words. Qualys also reports a client-side variant in which a Java program is compromised by connecting over TLS to a malicious server, so outbound-connecting Java services matter too.
From corruption to code execution. There is no universal exploit. Calif says each product needs its own chain and that the technique is sensitive to network conditions. Qualys notes an attacker can read Java heap memory first, which may expose keys, tokens and personal data, before running attacker code. Calif’s team says it found the bug with OpenAI’s Codex in about an hour, built a first working exploit about two hours later, and spent under $200 on AI usage. Wiz says its own AI research tool produced a working proof of concept in about two hours. That cost curve is the real story: the time between disclosure and weaponization is shrinking.
Beyond the Headlines: Why Your Exposure Is Not Just a Version Number
This section is our analysis of the public record as of November 20, 2026. We have not independently reproduced the exploits, and we say so where it matters.
1. The RCE claim is disputed, and defenders should plan for the worst case anyway.
Calif and several vendors describe pre-auth RCE. Harness’s lab found the overflow bytes are a fixed, decoder-derived pattern rather than attacker-chosen, and demonstrated a crash (SIGSEGV in the G1 collector with small fixed TLAB settings) but not code execution. Upwind and Equixly reached similar conclusions from source analysis, and The Hacker News noted neither firm reproduced the overflow on AVX-512 hardware. Wiz, by contrast, built a PoC and says exploitation is feasible but hard to generalize. Our read: the denial-of-service risk is real and cheap for any attacker. Code execution is plausible against specific products and heap layouts. Calif’s application chains remain withheld, so the safest posture is to treat internet-facing identity and build systems as exposed to RCE and everything else as exposed to crash and information disclosure.
2. Exposure is a three-way intersection, not a version number.
A runtime is exposed only if all of these are true:
- The JDK build is in the affected range and not yet updated.
- The host CPU exposes AVX-512 VBMI, with UseBASE64Intrinsics and UseAVX at defaults.
- An attacker can send input to a decoder path, ideally before authentication.
Most scanners report only the first. Cloud fleets often mix CPU generations, so two identical containers can have different exposure depending on where they were scheduled. Scheduling data belongs in your risk model.
3. Why we expect slow remediation.
The flaw is in the runtime, not a declared dependency. JDKs are bundled inside vendor appliances, container base images and installers, and each vendor patches on its own timeline. Oracle’s pre-release notice did not map its Java fixes to this CVE by name, and the CVE record was still reserved when the news broke, which delays enrichment in many feeds. Teams waiting for NVD to catch up will be late.
4. Precedent matters.
Calif’s earlier PHP2Shell, another leaked runtime RCE scored 9.2 under CVSS 4.0, was later added to CISA’s Known Exploited Vulnerabilities catalog. We would not wait for a KEV listing on Java4Shell before acting.
5. Log-hunting heuristics worth deploying now.
SentinelOne published a useful heuristic for Base64 values seen in WAF, proxy or application logs after normal parsing. Flag values where all of these hold:
- Total length, including padding, is 65 or more.
- Length mod 64 is 1, 2 or 3.
- The value ends in one or two = characters.
- All other characters are in the standard Base64 alphabet.
Pair it with host signals: unexpected JVM crashes or restarts on internet-facing services, a JVM spawning a shell, and new outbound connections from Java processes. Note that exploitation attempts can look like ordinary authentication failures, so correlate by source and repetition.
Fixing Java4Shell: What to Do in 24 Hours, 72 Hours and Beyond
Within 24 hours
- Inventory every Java runtime, including JDKs bundled in applications, appliances and container images. Record vendor, full build, OS, CPU architecture and owner. Check the running process, not only the installed package or image tag.
- Identify exposed hardware on Linux hosts:
grep -m1 '^flags' /proc/cpuinfo | tr ' ' '\n' | grep -E '^(avx512f|avx512bw|avx512vbmi|bmi2)$'
If all four flags appear, the host runs the vulnerable code path.
- Rank by exposure. Start with internet-facing Keycloak, PingFederate, Jira, Confluence, Artifactory and Jenkins, then Kafka, Solr, Elasticsearch, Gerrit and Spinnaker, then home-grown Spring Boot and Struts services. Take identity, build and collaboration consoles off the open internet or behind a VPN until patched.
Within 72 hours
- Patch the runtime. Move to 8u513, 11.0.33.1, 17.0.21.1, 21.0.13.1, 25.0.5.1 or 27.0.1.1 for Oracle builds, or your vendor’s fixed release for Temurin, Corretto, Zulu, Microsoft, Red Hat and others. Restart the process, then verify the running version. For bundled runtimes, follow the application vendor’s update path.
- If you cannot patch yet, apply a temporary JVM flag and restart:
- Preferred: -XX:-UseBASE64Intrinsics (disables the vulnerable fast path, may slow some workloads, so test first).
- Alternative on Intel and AMD only: -XX:UseAVX=2. It has a broader performance cost, and ARM JVMs will refuse to start with it.
- Neither flag replaces patching, and running JVMs stay exposed until restarted.
Backstops, not fixes
- Enforce strict Base64 validation in authentication filters or a front proxy: length a multiple of 4, alphabet characters only, padding only at the end. A loose character-class check does not block the overflowing inputs.
- Do not rely on WAF rules or input-size limits alone. Wiz and Qualys both state they cannot cover every decoder path.
- Hunt logs using the heuristic above, and alert on JVM crash loops and Java processes that spawn shells.
- Rotate secrets, tokens and keys held by internet-facing Java services that were unpatched, since heap disclosure is possible before code execution.
A note on reading advisories. Oracle’s November update covers more than 650 vulnerabilities across its portfolio, and the 11 Java SE fixes are not all Java4Shell. Do not assume that a clean scan of one product line means you are covered. Verify the fix at the build level.
Finding Every Vulnerable JVM Before Attackers Do
Java4Shell is a vulnerability intelligence problem before it is a patching problem. At Loginsoft, we bring 18 years of IT engineering and more than 6 years of cybersecurity focus to exactly this gap between a headline and a prioritized action list. Our team has discovered 1,000+ zero-days, analyzed 20,000+ CVEs, and built 200+ platform integrations, which means we know how advisories, scanners and asset inventories fail to line up.
What Loginsoft can do for security teams
- Vulnerability intelligence with context, via LOVI. LOVI enriches CVEs beyond the bare NVD record. For a case like Java4Shell, where the CVE is reserved, vendor scores conflict and affected ranges differ by distribution, enriched and reconciled intelligence helps teams see affected products, fixed builds and exploitation signals in one place.
- Real-time threat intelligence, via Cytellite. Cytellite lets analysts search threat intelligence in natural language, for example asking which actors are weaponizing recent Java runtime flaws, and track exploitation signals as they emerge rather than after a KEV listing.
- Risk prioritization built on exposure, not just CVSS. We help teams combine runtime version, CPU capability, internet reachability and decoder exposure to separate the handful of systems that need action today from the long tail.
- Integration engineering. Our integration team connects intelligence to the tools you already run (scanners, CMDB, ticketing, SIEM), so affected assets and fixed builds flow into existing remediation workflows instead of living in a spreadsheet.
- Detection and hunting support. We help turn heuristics like the Base64 pattern and JVM behavioral indicators into detections for your logging and endpoint stack.
FAQs: Java4Shell (CVE-2026-114938)
Q1. What is Java4Shell (CVE-2026-114938)?
Java4Shell is a memory-corruption flaw in OpenJDK’s AVX-512 Base64 decoder, disclosed by Calif on November 17, 2026 and rated CVSS 4.0 9.2 (Critical). Malformed Base64 input can write 62 bytes past a buffer, which Calif says leads to remote code execution in applications such as Keycloak, Jira, Confluence, Artifactory and Jenkins.
Q2. Which Java versions and distributions are affected by Java4shell?
OpenJDK 17.0.6 and later, including Java 21, 25 and 27, plus builds derived from OpenJDK: Oracle Java SE, Oracle GraalVM for JDK, Amazon Corretto, Eclipse Temurin, Microsoft Build of OpenJDK, Azul Zulu, BellSoft Liberica, SAP SapMachine and Red Hat OpenJDK. Oracle also lists the Java 8 Enterprise Performance Pack build 8u511b33-perf.
Q3. Are Java 8 and Java 11 affected by Java4shell?
Standard Java 8 and 11 builds did not overflow in Harness’s lab testing, but Oracle lists the Java 8 Enterprise Performance Pack build as affected and released 8u513 and 11.0.33.1 in the same update. Update them anyway and confirm with your vendor.
Q4. Does it affect ARM servers or CPUs without AVX-512?
No. The flawed code runs only on x86-64 CPUs with AVX-512 VBMI, such as Intel Ice Lake and newer or AMD Zen 4 and newer. ARM64 and x86-64 CPUs without VBMI are not affected, though you should still patch.
Q5. Is Java4Shell being exploited in the wild?
No in-the-wild exploitation had been publicly confirmed as of the November 17, 2026 reports. Calif published a proof of concept for the memory corruption but withheld the weaponized application exploits. Check current threat intelligence before relying on this.
Q6. How do I fix or mitigate Java4Shell?
Update to a fixed build (Oracle: 8u513, 11.0.33.1, 17.0.21.1, 21.0.13.1, 25.0.5.1, 27.0.1.1, or your vendor’s equivalent) and restart the process. Until then, start the JVM with -XX:-UseBASE64Intrinsics, or -XX:UseAVX=2 on x86-64 only. Neither flag replaces patching.
Q7. How can I check whether my servers are vulnerable to Java4Shell?
Inventory every Java runtime, then check each Linux host for the avx512f, avx512bw, avx512vbmi and bmi2 CPU flags with the command in the mitigation section. A host with all four flags and an unpatched affected JDK runs the vulnerable code path.
Sources
- BleepingComputer: Critical Java4Shell flaw allows RCE attacks on major Java applications
- The Hacker News: Oracle to patch 11 Java flaws today as RCE report leaks
- Oracle: November 2026 Critical Security Patch Update
- Harness: Past the end of the buffer (CVE-2026-114938)
- Wiz: CVE-2026-114938 RCE in OpenJDK
- Qualys: How to find, mitigate and patch Java4Shell
- SentinelOne: Defending against Java4Shell
- Endor Labs: Java4Shell reported in OpenJDK 17
- Sonatype: Critical OpenJDK RCE CVE-2026-114938

From Zero-Days to Forgotten Patches: TSGA Backdoor, C3RB3R Ransomware and Exploits Within Hours
Explore the key security, speed, and performance differences between TLS 1.3 and TLS 1.2
Ready to Find and Fix Your Security Weak Points?
LoginSoft's cybersecurity experts help organizations conduct thorough gap analyses, build prioritized remediation roadmaps, and achieve measurable security maturity improvements.
Schedule a Security Assessment
Hari Charan
A MESSAGE FROM OUR TECHNOLOGY LEADER
The NVD enrichment cutback is not a surprise to us - it’s the inflection point we’ve been preparing for. At Loginsoft, we’ve spent years building the research depth and tooling infrastructure to independently enrich vulnerabilities at scale, with the accuracy and context modern security programs require. LOVI is our answer. Our mission is simple: ensure that no CVE relevant to your environment goes unanalyzed, unscored, or unactioned - regardless of what remains in NIST’s queue.
Key Takeaways
Get the Latest Cybersecurity Insights
Security research, threat intelligence, vulnerability updates, product news, and expert insights, delivered directly to your inbox. Stay informed. Stay secure.
BLOGS AND RESOURCES





