Skip to content

Upgrade to JDK 25.0.5.1 to fix CVE-2026-114938 - #99

Merged
tibdex merged 5 commits into
mainfrom
security/java4shell-stopgap
Nov 20, 2026
Merged

tibdex merged 5 commits into
mainfrom
security/java4shell-stopgap

Conversation

@Acriss

@Acriss Acriss commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

JDK 25.0.5.1 fixes CVE-2026-114938 ("Java4Shell"): unauthenticated remote code execution through Base64 decoding on recent x86-64 CPUs. Merging publishes jdk4py 25.0.5.1 with Temurin 25.0.5.1+2, so users get the fix with a plain upgrade and JAVA_VERSION stays (25, 0, 5).

Also closes #98.

@Acriss
Acriss marked this pull request as draft November 18, 2026 13:44
@Acriss Acriss changed the title Turn off the Base64 intrinsics to mitigate CVE-2026-114938 Upgrade to JDK 25.0.5.1 to fix CVE-2026-114938 Nov 18, 2026
setup-java took the JDK preinstalled on the ubuntu-24.04 and windows-2025
runners whenever it matched the requested version, without asking Adoptium.
CI now names the exact Temurin build (25.0.5+8), which setup-java installs or
fails on: a wheel can no longer bundle another build with the same version
numbers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Acriss
Acriss force-pushed the security/java4shell-stopgap branch from cda0ab0 to a83d16d Compare November 19, 2026 14:29
Acriss and others added 2 commits November 19, 2026 16:24
`JAVA_VERSION` keeps the first 3 numbers of the JDK version, taken from the
package version: its fourth number counts the jdk4py releases of the line.

`JAVA_FULL_VERSION` is the exact JDK version with its build number, such as
25.0.5.1+2. jlink only keeps the version without the build number in the
`release` file it writes, so `build_java_runtime.py` copies
`JAVA_RUNTIME_VERSION` from the source JDK's `release` file with
`--release-info`. `JAVA_FULL_VERSION` reads it on first access and drops the
optional suffix, such as `-LTS`.

The README documents what each version number means and which JDK build each
release bundles.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
JDK 25.0.5.1 fixes CVE-2026-114938 ("Java4Shell"). It is released as
jdk4py 25.0.5.1: `JAVA_VERSION` is `(25, 0, 5)` and `JAVA_FULL_VERSION`
is `"25.0.5.1+2"`. CI bundles Temurin 25.0.5.1+2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Acriss
Acriss force-pushed the security/java4shell-stopgap branch from a83d16d to 353598b Compare November 19, 2026 15:24
@Acriss
Acriss marked this pull request as ready for review November 20, 2026 13:36
@tibdex
tibdex merged commit f0042d7 into main Nov 20, 2026
7 checks passed
@tibdex
tibdex deleted the security/java4shell-stopgap branch November 20, 2026 19:37
tibdex added a commit that referenced this pull request Nov 20, 2026
The 21 line of #99, built from main: CI runs and publishes on a push to 21
and bundles Temurin 21.0.13.1+2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tibdex pushed a commit that referenced this pull request Nov 20, 2026
The 21 line of #99, built from main: CI runs and publishes on a push to 21
and bundles Temurin 21.0.13.1+2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Adopt uv check

2 participants