Blogs

Security Advisory OC-SA-2026-11: Java4Shell (CVE-2026-114938) Remote Code Execution Vulnerability in the Java Runtime

  • 25th Nov 2026
  • One Cover Team
CVE
CVE-2026-114938
Severity
HIGH · CVSS 8.1
One Cover Priority
URGENT
Component
HotSpot JVM – AVX-512 Base64 decoder
Impact
RCE, memory disclosure, DoS
Authentication
Not required (several products)
Affected
Java 17, 21, 25, 27 on x86-64
Fix Status
PATCH AVAILABLE

01Executive Summary

On 17 November 2026, Oracle and the OpenJDK project released security fixes for CVE-2026-114938, a memory-corruption vulnerability in the Java Virtual Machine (JVM) that the security community has named "Java4Shell". The flaw lies in a performance-optimised routine the JVM uses to decode Base64 data on modern Intel and AMD server processors. By sending specially malformed Base64 input, an attacker can cause the JVM to write data outside its intended memory boundary. Under the right conditions, this can be turned into full remote code execution on the server.

Most vulnerabilities affect a single product. This one sits in the Java runtime that thousands of products are built on. Researchers have demonstrated unauthenticated remote code execution against default installations of Jira, Confluence, Jenkins, Keycloak, JFrog Artifactory and PingFederate. Custom Java applications, including core banking components, payment gateways, government portals and internal APIs, may be equally exposed.

One Cover Recommendation

Treat this vulnerability as an urgent priority. Identify every Java runtime in your environment, apply vendor fixes, and use the interim mitigation in Section 9 wherever patching cannot be completed immediately. Internet-facing systems should be remediated within 72 hours.

02Why This Vulnerability Matters

Java is one of the most widely deployed technologies in enterprise IT. In Nepal, it underpins a significant share of banking and financial software, payment switches, telecom billing systems, ERP platforms, identity and single sign-on (SSO) services, and software development pipelines.

Three characteristics make Java4Shell particularly serious:

  • It affects the platform, not the application. Because the defect is in the JVM, an application can be perfectly written and still be vulnerable simply because of the runtime it runs on.
  • The vulnerable function is used everywhere. Base64 decoding appears in authentication headers, API payloads, tokens, file uploads and certificate handling. Many applications decode attacker-supplied Base64 before any business logic runs.
  • Application-level validation does not prevent it. The memory corruption happens inside the decoder itself, before Java reports the input as invalid. By the time the application sees an error, the damage has already occurred.

03How Java4Shell Was Discovered

The vulnerability was discovered by Quang Luong, a researcher at the security firm Calif, during a security audit of OpenJDK's internal components. According to the researchers, the audit was carried out with the assistance of an AI coding agent. The flaw was identified in roughly one hour, and a first working exploit was built in about two further hours, at a total AI usage cost of under USD 200. AI agents were then used to help develop exploitation chains for specific enterprise applications.

The vulnerability was reported to Oracle and the OpenJDK Vulnerability Group under coordinated disclosure. The disclosure timeline was not entirely clean:

DateEvent
9 September 2026A proposed OpenJDK code change containing an input capable of triggering the bug was posted publicly. It later went inactive and was closed without being merged.
17 November 2026Calif stated publicly that details of the vulnerability had leaked ahead of the scheduled fix.
17 November 2026Oracle released its November Critical Security Patch Update and OpenJDK published fixed releases. Calif released its technical analysis and a safe proof-of-concept, but withheld application-specific exploits. CISA issued an alert urging immediate patching.
18–19 November 2026Security firms reported internet-wide scanning and early exploitation attempts against Java services.
Key Insight

The speed of discovery and exploit development is itself a warning. AI-assisted vulnerability research is shortening the time between a bug's discovery and a working exploit, which reduces the window organisations have to patch.

04Technical Analysis

4.1 Background: Base64 and JVM Intrinsics

Base64 is an encoding scheme that represents binary data as text. Java applications decode it through the standard java.util.Base64 API. To speed up frequently used operations, the HotSpot JVM's optimising compiler (C2) can replace certain Java methods at runtime with hand-written, hardware-specific machine code known as intrinsics. On x86-64 processors that support the AVX-512 VBMI instruction set, the JVM substitutes a highly optimised assembly routine for Base64 decoding that processes 64 bytes at a time.

4.2 Root Cause

The defect is in how this AVX-512 routine handles the padding characters (=) at the end of a Base64 string:

  1. Once a Base64 decoding method becomes "hot" (frequently executed), the C2 compiler swaps in the AVX-512 intrinsic.
  2. The intrinsic writes output in 64-byte blocks, using a bit mask to control how many bytes of each block are actually written.
  3. When the final block contains malformed padding, for example a stray =, the routine calculates an output length of zero and then subtracts one for each padding character. The length becomes negative.
  4. The negative value is interpreted by a processor bit-manipulation instruction as a very large number. The resulting mask has all bits set, so the routine performs a full 64-byte write regardless of how much space remains in the destination buffer.
  5. Data is written past the end of the heap array, corrupting adjacent objects in memory. In the researchers' example, a short malicious string caused 62 bytes to be written beyond a 50-byte array.
  6. Only after the out-of-bounds write does Java detect the invalid input and throw an IllegalArgumentException. The memory is already corrupted.

4.3 From Memory Corruption to Code Execution

An uncontrolled memory overwrite usually just crashes a program. A skilled attacker, however, can use heap grooming: sending carefully sequenced requests that shape the memory layout so that the overwrite lands on an object the attacker chooses. The researchers used this technique to obtain both a controlled memory write and a memory read primitive, and chained them into arbitrary code execution inside the JVM process.

4.4 Conditions Required for Exploitation

A system is vulnerable only when all of the following are true:

ConditionRequirement
Java versionUnpatched Java 17 (17.0.6 or later), 21, 25 or 27
Processorx86-64 CPU exposing avx512f, avx512bw, avx512vbmi and bmi2, which is common on current Intel Xeon and AMD EPYC servers and many cloud instances
Code pathThe application decodes attacker-influenced data using Base64.getDecoder() or Base64.getUrlDecoder(). The MIME decoder is not affected.

05Attack Scenarios

There is no single universal exploit. An attacker must find a route by which their malicious Base64 data reaches the vulnerable decoder in a specific application. Practical routes identified so far include:

  • Authentication headers. Many web frameworks decode credentials or tokens supplied in HTTP headers before checking whether they are valid. Researchers reproduced the bug against a Spring Boot application protected by Spring Security simply by sending a malformed Base64 authentication value. No valid account was needed.
  • API requests and file uploads. REST and SOAP APIs frequently accept Base64-encoded documents, images or binary payloads, all of which pass through the decoder.
  • Outbound connections. In one demonstration, a Java program was compromised just by connecting to a malicious TLS server. This means client-side Java software is exposed as well as servers: integration services, payment connectors and agents that call external endpoints.

Three Levels of Impact

OutcomeDifficultyConsequence
Denial of serviceLOWThe JVM crashes and the service goes offline. In one test, a vulnerable application crashed within about 20 seconds of repeated malformed requests, without authentication.
Silent data corruptionMODERATEApplication data in memory is altered without a crash, which can lead to incorrect transactions or records that are hard to detect.
Remote code executionHIGHThe attacker runs arbitrary commands with the privileges of the Java service, leading to full server compromise.

06Potential Business Impact

If successfully exploited, Java4Shell can give an attacker a foothold equivalent to an administrator on the affected server. Depending on the system compromised, consequences may include:

Affected SystemPotential Consequence
Identity & SSO
Keycloak, PingFederate
Theft of signing keys or session tokens, allowing attackers to impersonate any user across all connected applications
CI/CD & artefacts
Jenkins, JFrog Artifactory
Injection of malicious code into software builds that are then deployed across the organisation or to customers
Collaboration
Jira, Confluence
Exposure of internal documentation, credentials stored in tickets or pages, network diagrams and customer information
Banking & payments
Custom Java services
Outages of payment, banking or transaction-processing services that affect customers directly
Any compromised serverLateral movement deeper into the network, ransomware deployment, regulatory breach obligations and reputational damage

07Affected Products and Versions

Java Release LineAffected VersionsFixed Version (Oracle)
Java 17 (LTS)17.0.6 up to 17.0.21.0.317.0.21.1
Java 21 (LTS)21.0.13.0.3 and earlier21.0.13.1
Java 25 (LTS)25.0.5.0.3 and earlier25.0.5.1
Java 2727.0.1.0.3 and earlier27.0.1.1
Java 8 – Enterprise Performance Pack8u511b33-perf8u513-perf
Oracle GraalVM for JDK17.0.21.0.3, 21.0.13.0.317.0.21.1 / 21.0.13.1

Affected distributions: any Java build derived from the affected OpenJDK code, including Oracle Java SE, Oracle GraalVM, Amazon Corretto, Eclipse Temurin, Microsoft Build of OpenJDK, Azul Zulu, BellSoft Liberica, SAP SapMachine and Red Hat build of OpenJDK. Each vendor publishes its own fixed build numbers, and some vendors released fixes later than Oracle.

Not Affected by Java4Shell

Standard Java 8 and Java 11 releases, systems on ARM64 processors (including AWS Graviton and Apple Silicon), and x86-64 processors without AVX-512 VBMI support. Note that Oracle's November 2026 update also fixes ten other Java SE vulnerabilities, so Java 8 and 11 users should still apply it.

Products with Demonstrated Exploitation

Exploitation TypeProducts
UNAUTHENTICATED RCEAtlassian Jira, Atlassian Confluence, Jenkins, Keycloak, JFrog Artifactory, PingFederate
AUTHENTICATED RCEApache Kafka Broker, Apache Solr, Elasticsearch, Gerrit, Spinnaker
SAMPLE APPLICATIONSSpring Boot, Apache Struts

08Current Threat Landscape

  • Technical details and a safe proof-of-concept that demonstrates the memory corruption are publicly available. Third-party trigger code also circulated on the day of disclosure.
  • Within days of disclosure, multiple security firms reported internet-wide scanning, including requests explicitly labelled as Java4Shell reconnaissance, along with blind exploitation attempts against Java services.
  • Product-specific weaponised exploits have not been publicly released, but researchers expect attackers to develop reliable exploits for individual products over time.
  • Security agencies, including the U.S. Cybersecurity and Infrastructure Security Agency (CISA), CERT-EU and the Canadian Centre for Cyber Security, have issued alerts urging immediate action.

09Mitigation and Remediation

PHASE 1Immediate Actions (0–72 hours)

Step 1: Apply the security update. Upgrade every affected Java runtime to the November 2026 fixed release from your Java vendor (see Section 7). After upgrading, restart every Java service: a running JVM keeps using the old, vulnerable code until it is restarted.

Step 2: Apply the interim mitigation where patching is delayed. If a fixed runtime cannot be deployed immediately, for example because a vendor has not yet released an update for a bundled product, disable the vulnerable code path by adding the following JVM option and restarting the service:

-XX:-UseBASE64Intrinsics

This makes the JVM use the standard Java Base64 implementation instead of the vulnerable AVX-512 routine. The performance impact is negligible for typical workloads such as login endpoints and API requests. Only applications that decode very large volumes of Base64 data are likely to notice a difference.

Common ways to apply the option:

# Environment variable (picked up by most JVMs at start-up)
export JAVA_TOOL_OPTIONS="-XX:-UseBASE64Intrinsics"

# Apache Tomcat / Jira / Confluence – add to bin/setenv.sh
CATALINA_OPTS="$CATALINA_OPTS -XX:-UseBASE64Intrinsics"

# Docker / Kubernetes – set as a container environment variable
JAVA_TOOL_OPTIONS=-XX:-UseBASE64Intrinsics

# systemd-managed service – add to the service unit
Environment="JAVA_TOOL_OPTIONS=-XX:-UseBASE64Intrinsics"

An alternative option, -XX:UseAVX=2, disables all AVX-512 instructions. It may reduce performance more broadly, and the JVM will not start with it on ARM systems. Prefer -XX:-UseBASE64Intrinsics where possible.

Important

These options are temporary mitigations and do not replace patching. Test them in a non-production environment first, and remove them once a fixed runtime is installed.

Step 3: Prioritise by exposure. Remediate in this order:

  1. Internet-facing Java applications and APIs
  2. Identity, SSO and authentication services
  3. CI/CD and artefact repositories (Jenkins, Artifactory, Git servers)
  4. Collaboration platforms (Jira, Confluence)
  5. Internal business applications and back-end services

PHASE 2Short-Term Actions (within 2 weeks)

  • Build a complete Java runtime inventory. Software dependency scanners often do not detect the JDK itself. Search every server for running Java processes, and include runtimes bundled inside commercial products, appliances and container images.
  • Rebuild container images. Containers built on vulnerable base images, such as eclipse-temurin or openjdk, remain vulnerable until they are rebuilt on a fixed base image and redeployed.
  • Apply vendor product updates. For commercial software that ships its own Java runtime, apply the vendor's security update or follow its published interim guidance.
  • Review client-side Java software. Remember that outbound-connecting Java programs, such as integration services, payment connectors and monitoring agents, can also be targeted.
  • Apply the October 2026 Critical Patch Update. If it has not already been applied, include Oracle's October release, which separately fixed 55 Java SE vulnerabilities, in the same patch cycle.

PHASE 3Compensating Controls (ongoing)

  • Reduce exposure: remove direct internet access to administrative and internal Java applications, and place them behind a VPN or zero-trust access gateway.
  • Web Application Firewall: add rules to inspect authentication headers and parameters for malformed Base64 padding, such as stray = characters in unexpected positions. Treat this as an additional layer only, because it can produce false positives and is not a substitute for patching.
  • Input limits and rate limiting: enforce request size limits and rate-limit unauthenticated endpoints, which raises the cost of the repeated requests that heap grooming and crash attacks depend on.
  • Least privilege: make sure Java services run as dedicated low-privilege accounts, so that a successful compromise has limited reach.

10Detection and Verification

10.1 Identify Vulnerable Systems

# 1. Check the installed Java version
java -version

# 2. Check the version of a running Java process
jcmd <PID> VM.version

# 3. Check CPU support for the vulnerable instruction sets (Linux)
grep -m1 '^flags' /proc/cpuinfo | tr ' ' '\n' | grep -E '^(avx512f|avx512bw|avx512vbmi|bmi2)$'
#    All four must be listed for the vulnerable code path to be used.

# 4. Confirm whether the interim mitigation is active
jcmd <PID> VM.flags -all | grep -E 'UseBASE64Intrinsics|UseAVX'

# 5. Find all running Java processes on a Linux host
ps -eo pid,user,args | grep -i '[j]ava'
Verification Notes

Hypervisors may hide CPU features from virtual machines, so run the CPU check inside each VM or container, not on the physical host. Confirming the vendor's fixed build number is the most reliable way to verify remediation. Safe proof-of-concept tests can give misleading results on some Java versions and should not be the only verification method.

10.2 Indicators of Possible Exploitation

IndicatorWhat to Look For
JVM crashesNew hs_err_pid*.log crash files on application servers
Decoder errorsSpikes in Base64-related IllegalArgumentException errors in application logs
Malformed headersAuthentication values with stray or unusual = padding, especially in high volumes from one source
Suspicious processesJava services spawning sh, bash, cmd.exe, powershell, curl or wget
Network anomaliesUnusual outbound connections from Java application servers
Data anomaliesUnexplained changes in application records, which may indicate silent memory corruption
If You Suspect Compromise

If any of these indicators appear on an unpatched system, treat it as a potential compromise: isolate the system, preserve logs and memory where possible, and begin incident response.

11Remediation Checklist

#ActionPriority
1Inventory all Java runtimes, including bundled and containerised onesIMMEDIATE
2Confirm CPU support for AVX-512 VBMI on each hostIMMEDIATE
3Upgrade to the November 2026 fixed Java release and restart servicesIMMEDIATE
4Apply -XX:-UseBASE64Intrinsics where patching is delayedIMMEDIATE
5Patch internet-facing, identity and CI/CD systems firstIMMEDIATE
6Rebuild and redeploy container imagesSHORT-TERM
7Apply vendor updates for products that bundle JavaSHORT-TERM
8Deploy WAF rules, rate limiting and exposure reductionONGOING
9Monitor for crashes, malformed Base64 and suspicious processesONGOING
10Remove temporary JVM flags once patched and verifiedAFTER PATCH

How One Cover Can Assist

One Cover Pvt. Ltd. helps organisations across Nepal respond quickly and effectively to critical vulnerabilities such as Java4Shell.

  • Exposure assessment: discovery of Java runtimes across servers, cloud workloads and containers
  • VAPT: testing of internet-facing and internal applications to confirm real-world exploitability
  • Remediation verification: confirmation that patches and mitigations are correctly applied
  • Compromise assessment: review of logs and systems for indicators of exploitation

To request assistance, contact info@onecovernepal.com

Disclaimer: This advisory is based on information available at the time of publication and is provided for awareness and guidance purposes. Organisations should validate changes in a test environment and consult their software vendors' official security advisories before modifying production systems. One Cover will update this advisory if significant new information becomes available.

— One Cover Team