Skip to content

Injection: OpenJDK - Base64 Decoder Heap Overflow (Java4Shell)

Identifier: cve_2026_114938

Scanner Support

GraphQL Scanner REST Scanner WebApp Scanner ASM Scanner Automated Pentest

Description

Java4Shell (CVE-2026-114938) is an out-of-bounds heap write in the Base64 decoder of OpenJDK 17.0.6 and later, fixed in 17.0.21.1, 21.0.13.1, 25.0.5.1 and 27.0.1.1. An unauthenticated attacker who sends malformed Base64 to an application running on an x86-64 CPU with AVX-512 VBMI can corrupt the JVM heap, crash the application, read its memory, and in demonstrated cases execute code.

How we test: We read the Java runtime version and the CPU architecture from management endpoints that disclose them (Spring Boot Actuator info and env, Solr system properties, Elasticsearch and OpenSearch node info, Hadoop-style JMX, Jolokia), and flag versions inside the affected ranges on JVMs that state an x86-64 architecture. The requests are read-only and ask for these two values alone, never a full environment or JMX dump. This is a version check only. We never send the exploit, because it corrupts memory and can crash the application. An application that doesn't expose one of these endpoints, or doesn't state its architecture, isn't detected. Whether the CPU has AVX-512 VBMI and whether the JVM runs with a mitigating flag can't be seen from the network, and a vendor build that backports the fix under an unchanged version number would still be reported.

Reference:

Configuration

Example

Example configuration:

---
security_tests:
  cve_2026_114938:
    skip: false

Reference

skip

Type: boolean

Skip the test if true.