r/admincraft • u/riveyda • 20h ago
News Java4Shell - OpenJDK Vulnerability (Remote Code Execution)
FYI: https://calif.io/java4shell/
I will be taking my servers down as a precaution, wanted to share this to everyone to prevent compromise.
It looks like the best current fix is to add -XX:UseAVX=2 on x86-64 hosts to your server startup scripts. But, do your own research.
54
Upvotes
19
u/hiromasaki 20h ago
Does Minecraft use Base64 for anything?
It also only affects Zen4 and up, and Intel CPUs from the last 9-10 years.
6
u/This-Marzipan-9239 20h ago
damn another rce
14
u/JkStudios 20h ago
They can have my docker container and everything in it.
8
u/celestialcitymc Server Owner | Celestial City 19h ago
i believe it wouldn't really affect minecraft servers for normal attackers, though it might be possible if the attacker has op, but if they do have op and you use a docker container to host the minecraft server, they can only damage the server (which they already can do).
4
u/Dragontech97 17h ago edited 16h ago
Looks like OpenJDK posted an advisory(no patch yet on Ubuntu) and Oracle released a patch already. You can check and compare with java -version.
1
u/Professional_Loss_85 Server Owner 19h ago
Does this only affect Minecraft servers? What about singleplayer like me or Minecraft account?
1
u/mattersec 5h ago
For anyone triaging a Paper server: seeing Base64 in the code is a starting point. The question is whether data a player controls actually reaches the affected decoder, including through a plugin. I’d patch the Java build your server actually launches and check that build again after restart. A shell’s java -version can point at a different install. Red Hat’s scope and mitigation notes: https://access.redhat.com/security/vulnerabilities/RHSB-2026-018