Advisory ID:   ngCERT-2026-110016 

Damage:     Critical (CVSS v4.0: 9.2)

Probability:  High

Platform(s):  OpenJDK, Oracle Java SE, Oracle GraalVM and other affected Java distributions.

SUMMARY

ngCERT is alerting users and organisations to a critical heap-based buffer overflow vulnerability in the Java Runtime Environment (JRE), tracked as CVE-2026-114938 and dubbed Java4Shell. The vulnerability affects the Java Virtual Machine's (JVMs) Base64 decoding functionality and could allow unauthenticated remote attackers to execute arbitrary code, disclose sensitive information or disrupt affected applications. Organisations are advised to identify affected Java installations and apply the relevant vendor security updates immediately.

DESCRIPTION

CVE-2026-114938 arises from improper memory handling in the accelerated Base64 decoding implementation of the JVM. Processing specially crafted Base64 input, particularly malformed strings containing additional padding characters, can trigger a heap-based buffer overflow, causing approximately 62–63 bytes to be written beyond the allocated memory buffer. The vulnerability affects compatible x86-64 systems supporting AVX-512 Vector Byte Manipulation Instructions (VBMI) and may be exploited through applications that process attacker-controlled Base64 data, including authentication credentials, SAML artefacts, CSRF tokens and MIME-encoded content. Researchers demonstrated pre-authentication remote code execution against default configurations of Keycloak, Jira, Confluence, JFrog Artifactory, Jenkins and PingFederate. Meanwhile, exploitation requiring authentication was demonstrated against Apache Kafka Broker, Apache Solr, Elasticsearch, Gerrit and Spinnaker. The vulnerability affects OpenJDK versions 17.0.6 and later, including Java 21, 25     and 27, as well as affected builds of Oracle Java SE 8 Performance Pack and versions 17, 21, 25 and 27. Other impacted products include Oracle GraalVM for JDK versions 17 and 21, Oracle GraalVM Enterprise Edition 21.3.20.0.3, and affected vendor-maintained distributions such as Amazon Corretto and Azul Zulu.

CONSEQUENCES

Successful exploitation of this vulnerability could result in:

    1. Remote Code Execution.
    2. Unauthorised System Access.
    3. Sensitive Data Exposure.
    4. Application and Service Disruption.
    5. Lateral Movement Across Networks.

SOLUTION/MITIGATION

ngCERT recommends the following:

    1. Identify affected Java installations across servers, workstations, cloud environments, containers and third-party applications.
    2. Apply the latest security updates released by the relevant Java vendors and software providers.
    3. Prioritise internet-facing applications, authentication services and systems processing externally supplied Base64 data.
    4. Where immediate patching is not possible, use -XX:-UseBASE64Intrinsics to disable the vulnerable accelerated Base64 decoding implementation, following vendor guidance.
    5. Alternatively, on affected x86-64 systems, consider -XX:UseAVX=2 to disable AVX-512 execution paths, subject to vendor recommendations.
    6. Restart affected Java services after patching and rebuild or redeploy container images to ensure updated runtimes are in use.
    7. Monitor application and endpoint logs for malformed Base64 inputs, repeated decoder exceptions, unexpected JVM crashes and suspicious service restarts.  

HYPERLINK