---
title: "Java4Shell (CVE-2026-114938): how to find every vulnerable JDK across your repos and servers"
description: "Java4Shell (CVE-2026-114938) is a CVSS 9.2 heap overflow in HotSpot's AVX-512 VBMI Base64 decoding intrinsic."
url: "https://swe.quest/articles/java4shell-cve-2026-114938-how-to-find-every-vulnerable-jdk-across-your-repos-a48611445ce49ec3"
canonical: "https://sourcegraph.com/blog/java4shell-cve-2026-114938-find-vulnerable-jdk"
source: "Sourcegraph"
published: "2026-11-18"
difficulty: "medium"
kind: "How-to"
reading_minutes: 8
tags: ["vulnerability-research","jvm","incident-response","supply-chain-security"]
---

# Java4Shell (CVE-2026-114938): how to find every vulnerable JDK across your repos and servers

A post on [Sourcegraph](https://swe.quest/sources/sourcegraph.md), published 2026-11-18, 8 min read, How-to. Original: [https://sourcegraph.com/blog/java4shell-cve-2026-114938-find-vulnerable-jdk](https://sourcegraph.com/blog/java4shell-cve-2026-114938-find-vulnerable-jdk)

## Summary

Java4Shell (CVE-2026-114938) is a CVSS 9.2 heap overflow in HotSpot's AVX-512 VBMI Base64 decoding intrinsic. When input ends in padding, a miscalculated store mask writes a full 64 bytes, so any untrusted Base64 path (auth headers, JWTs, SAML, uploads) can reach it on OpenJDK 17.0.6+ running on affected x86-64 CPUs. Exposure depends on which node a workload lands on, so every JDK 17+ should be treated as vulnerable. The post gives regex Code Search queries for Dockerfiles, package installs, Helm charts and CI workflows, plus a remediation checklist. Use -XX:-UseBASE64Intrinsics rather than -XX:UseAVX=2, which breaks ARM. Then patch pre-auth tools first, chase bundled JDKs, restart JVMs, rotate secrets and hunt for hs\_err logs.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Vulnerability research](https://swe.quest/tags/vulnerability-research.md) (Security)
- [Java & JVM](https://swe.quest/tags/jvm.md) (Languages)
- [Incidents & postmortems](https://swe.quest/tags/incident-response.md) (Reliability & operations)
- [Supply chain security](https://swe.quest/tags/supply-chain-security.md) (Security)

## Prerequisites

- JVM flags and HotSpot basics ([easy posts on Java & JVM](https://swe.quest/tags/jvm.md?difficulty=easy))
- Dockerfiles and container base images
- Regular expressions

## Keywords

CVE-2026-114938, Java4Shell, OpenJDK, HotSpot, AVX-512, Sourcegraph, Base64 intrinsic

## Related posts

- [Docker patches Java4Shell and the NGINX HTTP/2 with Docker Hardened Images](https://swe.quest/articles/docker-patches-java4shell-and-the-nginx-http-2-with-docker-hardened-images-8ddbd959f327792f.md): Docker · 2026-11-19 · Medium · 15 min read · Vulnerability research, Java & JVM, Containers, Supply chain security
  Java4Shell (CVE-2026-114938) is a HotSpot memory-corruption bug in the AVX-512 VBMI Base64 decoding intrinsic that writes up to 62 bytes past a heap buffer, enabling heap disclosure and pre-auth RCE in apps like Keycloak and Jenkins on Java 17.0.6+ running on affected x86-64 CPUs.
- [How Cloudflare WAF helps protect against Java4Shell (CVE-2026-114938)](https://swe.quest/articles/how-cloudflare-waf-helps-protect-against-java4shell-cve-2026-114938-001767259b988fdd.md): Cloudflare · 2026-11-18 · Medium · 9 min read · Vulnerability research, Memory safety, Java & JVM, Application security
  Java4Shell (CVE-2026-114938, CVSS 9.2) is a memory-corruption bug in OpenJDK's AVX-512 Base64 decoder intrinsic.
- [Ruby2Shell (CVE-2026-132825): find vulnerable Ruby across your repos](https://swe.quest/articles/ruby2shell-cve-2026-132825-find-vulnerable-ruby-across-your-repos-943808a4d97a4f48.md): Sourcegraph · 2026-11-20 · Medium · 5 min read · Ruby, Vulnerability research, Supply chain security, Developer tools
  Ruby2Shell (CVE-2026-132825) is a critical heap overflow in Ruby's string case conversion that researchers say default Rails and classic Sinatra apps expose without authentication, with remote code execution proofs of concept known.
- [How Cloudflare WAF protects against ruby2shell (CVE-2026-132825)](https://swe.quest/articles/how-cloudflare-waf-protects-against-ruby2shell-cve-2026-132825-7727483822350470.md): Cloudflare · 2026-11-20 · Medium · 6 min read · Vulnerability research, Ruby, Application security, Memory safety
  ruby2shell (CVE-2026-132825) is a heap buffer overflow in Ruby's string case conversion: in 14 legacy single-byte encodings, uppercasing the German ß writes two bytes (SS) but reserves room for one, so 21 sharp s characters overflow by a byte, with proofs of concept reaching remote code execution.
- [Enabling QR codes in Internet Explorer, or a story of a cross-platform memory disclosure](https://swe.quest/articles/enabling-qr-codes-in-internet-explorer-or-a-story-of-a-cross-platform-memory-9e0e377c9a716769.md): Google Project Zero · Hard · 23 min read · Vulnerability research, Browsers, Memory safety
  A shared bug in PostScript font engines let a Charstring program read uninitialized memory.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
