Skip to main content

Cve/java4shell

@swamp/cve/java4shellv2026.11.19.1· AGPL-3.0-or-later· 1d agoBEHAVIORSREPORTSACCEPTED WARNINGS
01README

Finds Java runtimes exposed to CVE-2026-114938 ("Java4Shell", CVSS 4.0 9.2 preliminary), the out-of-bounds write in the HotSpot x86-64 AVX-512 Base64 decode intrinsic disclosed 2026-11-17. A short padded Base64 tail makes the decode stub write past the output buffer, which can crash the JVM or, the discoverer reports, run code without authentication wherever an attacker can get java.util.Base64's basic or URL decoder to read their input.

The bug is only reachable on x86-64 CPUs with AVX-512 VBMI (Intel Ice Lake and newer Xeon, AMD Zen 4 and newer) running an affected HotSpot build (OpenJDK 17.0.6 and later, 18+, 21, 25, 27). A vulnerable runtime on ARM64 (Graviton, Apple silicon) or an older x86 CPU is present but not exploitable, and this scanner foregrounds that CPU gate so you can tell the two apart.

Oracle shipped fixed CPU builds (17.0.21.1, 21.0.13.1, 25.0.5.1, 27.0.1.1); as of disclosure no other distribution (Temurin, Corretto, Zulu, Microsoft, Liberica, Red Hat, SapMachine, GraalVM) had a fixed build, so those rate no-fix-released and the stopgap is the JVM flag.

Methods

  • scan scans one host (local or SSH), Docker container or image, including distroless images without sh.
  • scanFleet scans many hosts in parallel over SSH (Linux, macOS and Windows).
  • mitigate scans, then produces the exact remediation plan as a script. It never changes the host (no fixed build is installable through a package manager yet, and a global JVM flag is unsafe): the script sets the stopgap per affected systemd service and lists the upgrade and restart commands for an operator to run as root.

What it reports

Every Java runtime it finds on disk (across distro, Homebrew, SDKMAN, asdf/mise and the macOS locations) and every running JVM, with its vendor, version and a verdict (patched, vulnerable, no-fix-released, mitigated, restart-required, check-vendor, not-affected, unknown); the host CPU's AVX-512 VBMI status; and whether a running JVM already has the Base64 intrinsic disabled. Risk weighs the runtime, the CPU and exposure: critical only when an affected runtime runs on an AVX-512 VBMI CPU and a service is exposed.

Scanning needs no root and never runs a binary that someone other than root or the scanning user could have written. No indicators of compromise have been published.

02Behaviors1
@swamp/cve/java4shellv2026.11.19.1java4shell.ts
fn scan()
Scan one host, container or image for Java runtimes exposed to CVE-2026-114938 (Java4Shell)
fn scanFleet()
Scan multiple hosts in parallel over SSH (Linux, macOS and Windows). Pass a comma-separated list of hosts; each connects as the model's SSH user and key, or as user for a user@host entry.
fn mitigate()
Scan, then produce the Java4Shell remediation plan as a script. It never changes the host (no fixed build is installable through the package manager yet, and a global JVM flag is unsafe): the script sets the stopgap per affected systemd service and lists the upgrade and restart commands for an operator to run as root.

Resources

status(infinite)— Exposure assessment for CVE-2026-114938 (OpenJDK Base64 AVX-512 intrinsic out-of-bounds write, Java4Shell)

Files

log(text/plain)— Scan execution log
script(text/plain)— Remediation commands to run by hand (stopgap flag, upgrade, restart)
03Reports1
@swamp/cve/java4shell-reportmethod
java4shell_report.ts

Reports on Java4Shell (CVE-2026-114938) scan and mitigation results

securityvulnerability
04Previous Versions3
2026.11.18.2AGPL-3.0-or-later
2026.11.18.1AGPL-3.0-or-later
2026.11.17.1AGPL-3.0-or-later
05Stats
A
93 / 100
Downloads
21
Archive size
86.4 KB
Verified by Swamp
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented0/1missing
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Docs keep secrets in a vault1/1earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License2/2earned
  • Verified public repository2/2earned

07Platforms
08Labels