Skip to content

Mitigate CVE-2026-114938 (Java4Shell) in node image - #736

Merged
rkwmt merged 2 commits into
mainfrom
mitigate-java4shell
Nov 18, 2026
Merged

rkwmt merged 2 commits into
mainfrom
mitigate-java4shell

Conversation

@takahiro-yamada

@takahiro-yamada takahiro-yamada commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Mitigate CVE-2026-114938 (Java4Shell) in the node and elasticsearch images by disabling the Base64 intrinsics (-XX:-UseBASE64Intrinsics). Fixed JDK builds are not yet available for either image.

node

  • The openjdk-21-jre package in Ubuntu 24.04 (21.0.13.0.3+1-1~24.04.1) is affected, and no fixed package is available in noble-security yet.
  • Add ENV JAVA_TOOL_OPTIONS="-XX:-UseBASE64Intrinsics".
  • Bump containers/node/TAG to 24.22.3.2.

elasticsearch

  • The JDK bundled with Elasticsearch 8.19.24 (27.0.1.0.3) is affected. The latest 8.19.25 still bundles the same JDK.
  • Add -XX:-UseBASE64Intrinsics via config/jvm.options.d/java4shell.options, so it is not overridden by ES_JAVA_OPTS.
  • Bump containers/elasticsearch/TAG to 8.19.24.2.
k8s:> docker pull ghcr.io/cybozu/ubuntu:24.04.20261117
24.04.20261117: Pulling from cybozu/ubuntu
Digest: sha256:f50db2c1458e623f6b8e4a313b81141965ecbb8572444e0cd9f6668564c803a4
Status: Downloaded newer image for ghcr.io/cybozu/ubuntu:24.04.20261117
ghcr.io/cybozu/ubuntu:24.04.20261117
$
k8s:> docker run --rm -it ghcr.io/cybozu/ubuntu:24.04.20261117 bash
root@118144e78333:/# apt-get update && apt-cache madison openjdk-21-jdk
Get:1 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB]
Get:2 http://archive.ubuntu.com/ubuntu noble InRelease [256 kB]
Get:3 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Packages [1558 kB]
Get:4 http://archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
Get:5 http://archive.ubuntu.com/ubuntu noble-backports InRelease [126 kB]
Get:6 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Packages [2211 kB]
Get:7 http://archive.ubuntu.com/ubuntu noble/universe amd64 Packages [19.3 MB]
Get:8 http://security.ubuntu.com/ubuntu noble-security/multiverse amd64 Packages [55.6 kB]
Get:9 http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages [1472 kB]
Get:10 http://archive.ubuntu.com/ubuntu noble/multiverse amd64 Packages [331 kB]
Get:11 http://archive.ubuntu.com/ubuntu noble/restricted amd64 Packages [117 kB]
Get:12 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages [1808 kB]
Get:13 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [2182 kB]
Get:14 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [1799 kB]
Get:15 http://archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 Packages [61.7 kB]
Get:16 http://archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Packages [2329 kB]
Get:17 http://archive.ubuntu.com/ubuntu noble-backports/main amd64 Packages [49.0 kB]
Get:18 http://archive.ubuntu.com/ubuntu noble-backports/universe amd64 Packages [36.0 kB]
Get:19 http://archive.ubuntu.com/ubuntu noble-backports/multiverse amd64 Packages [669 B]
Fetched 34.0 MB in 6s (5679 kB/s)
Reading package lists... Done
openjdk-21-jdk | 21.0.13.0.3+1-1~24.04.1 | http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
openjdk-21-jdk | 21.0.13.0.3+1-1~24.04.1 | http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages
openjdk-21-jdk | 21.0.3+9-1ubuntu1 | http://archive.ubuntu.com/ubuntu noble/main amd64 Packages
root@118144e78333:/#

Signed-off-by: takahiro-yamada <takahiro-yamada@cybozu.co.jp>
@takahiro-yamada takahiro-yamada self-assigned this Nov 18, 2026
Signed-off-by: takahiro-yamada <takahiro-yamada@cybozu.co.jp>
@takahiro-yamada
takahiro-yamada requested review from rkwmt and removed request for zoetrope November 18, 2026 01:08
@rkwmt
rkwmt merged commit 1bce9da into main Nov 18, 2026
16 checks passed
@rkwmt
rkwmt deleted the mitigate-java4shell branch November 18, 2026 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants