mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-11-21 14:32:39 +00:00
Java4Shell is now fixed in base image (#4409)
This commit is contained in:
1 parent
f2400958a7
commit
dad39111b3
2 files changed
+1
-10
No files matched your search
@@ -163,4 +163,4 @@ MeowIce's flags use the G1 garbage collector by default. MeowIce also provides a
|
||||
|
||||
## Mitigating Java4Shell exploit (CVE-2026-114938)
|
||||
|
||||
By default the image will mitigate the Java4Shell exploit (CVE-2026-114938) by disabling `UseBASE64Intrinsics` with `-XX:-UseBASE64Intrinsics` when using Java 17 or later. This can be disabled by setting the environment variable `FIX_JAVA4SHELL_EXPLOIT` to `false`.
|
||||
The latest image now includes a base image that includes the upstream fix [listed here](https://adoptium.net/news/2026/11/temurin-november-2026-cspu-java4shell).
|
||||
@@ -233,12 +233,3 @@ if isTrue "${USE_SIMD_FLAGS}"; then
|
||||
--add-modules=jdk.incubator.vector
|
||||
"
|
||||
fi
|
||||
|
||||
# if java >= 17, mitigate Java4Shell exploit (CVE-2026-114938) by disabling UseBASE64Intrinsics with
|
||||
# -XX:-UseBASE64Intrinsics
|
||||
if [[ $java_major_version -ge 17 ]] && isTrue "${FIX_JAVA4SHELL_EXPLOIT:-true}"; then
|
||||
JVM_XX_OPTS="${JVM_XX_OPTS}
|
||||
-XX:-UseBASE64Intrinsics
|
||||
"
|
||||
log "Disabling UseBASE64Intrinsics to mitigate Java4Shell exploit (CVE-2026-114938)"
|
||||
fi
|
||||
Reference in new issue
Block a user