---
title: "Docker patches Java4Shell and the NGINX HTTP/2 with Docker Hardened Images"
description: "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."
url: "https://swe.quest/articles/docker-patches-java4shell-and-the-nginx-http-2-with-docker-hardened-images-8ddbd959f327792f"
canonical: "https://www.docker.com/blog/docker-patches-java4shell-and-the-nginx-http-2-with-docker-hardened-images/"
source: "Docker"
published: "2026-11-19"
difficulty: "medium"
kind: "How-to"
reading_minutes: 15
tags: ["vulnerability-research","jvm","containers","supply-chain-security"]
---

# Docker patches Java4Shell and the NGINX HTTP/2 with Docker Hardened Images

A post on [Docker](https://swe.quest/sources/docker.md), published 2026-11-19, 15 min read, How-to. Original: [https://www.docker.com/blog/docker-patches-java4shell-and-the-nginx-http-2-with-docker-hardened-images/](https://www.docker.com/blog/docker-patches-java4shell-and-the-nginx-http-2-with-docker-hardened-images/)

## Summary

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. Exposure requires a vulnerable Java version, an AVX-512 VBMI host, and attacker-controlled Base64 input. The guidance covers checking CPU flags and runtime versions in shell-less images, tracking which vendor builds are fixed, and applying -XX:-UseBASE64Intrinsics as a stopgap. That flag must be set via JAVA\_TOOL\_OPTIONS or JDK\_JAVA\_OPTIONS, not JAVA\_OPTS, with care around FIPS images, Java 8 and child JVMs, then verified on the running process; NGINX HTTP/2 fixes ship in 1.30.7 and 1.31.9.

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)
- [Containers](https://swe.quest/tags/containers.md) (Infrastructure)
- [Supply chain security](https://swe.quest/tags/supply-chain-security.md) (Security)

## Prerequisites

- JVM options and environment variables ([easy posts on Java & JVM](https://swe.quest/tags/jvm.md?difficulty=easy))
- Docker and Kubernetes basics ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))
- CVE patching workflow ([easy posts on Vulnerability research](https://swe.quest/tags/vulnerability-research.md?difficulty=easy))

## Keywords

Java4Shell, CVE-2026-114938, Docker Hardened Images, HotSpot, AVX-512 VBMI, JAVA\_TOOL\_OPTIONS, Eclipse Temurin, NGINX

## Related posts

- [Java4Shell (CVE-2026-114938): how to find every vulnerable JDK across your repos and servers](https://swe.quest/articles/java4shell-cve-2026-114938-how-to-find-every-vulnerable-jdk-across-your-repos-a48611445ce49ec3.md): Sourcegraph · 2026-11-18 · Medium · 8 min read · Vulnerability research, Java & JVM, Incidents & postmortems, Supply chain security
  Java4Shell (CVE-2026-114938) is a CVSS 9.2 heap overflow in HotSpot's AVX-512 VBMI Base64 decoding intrinsic.
- [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.
- [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.
- [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.
- [php2shell: patching PHP is easy, finding it is the hard part](https://swe.quest/articles/php2shell-patching-php-is-easy-finding-it-is-the-hard-part-9a45e6f935b2d2f4.md): Sourcegraph · 2026-10-21 · Medium · 5 min read · PHP, Vulnerability research, Supply chain security, Incidents & postmortems, Memory safety
  PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 fix two unauthenticated RCE memory-safety bugs (CVE-2026-109618/109619, dubbed php2shell) in the request lifecycle, reachable on mod\_php via a crafted multipart POST before application code runs.

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)
