r/admincraft • • 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

17 comments sorted by

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.

14

u/MenschenToaster Developer and Owner(cafestu.be) 20h ago

There is certainly something in Paper in CraftMetaArmorStand that cought my eye. Could potentially be exploited by people in Creative mode and parses base64, but I havent read more into it

MessageSignature uses Base64 encoding but I dont know to what extent its user supplied

Maybe more, but my Intellij sucks at indexing

And plugins of course. Paper provides a way to encode items etc. as base64. Thats not inherently user supplied, but could be by plugins etc.

4

u/Coosanta 19h ago

The server icon is encoded in base 64 when sent to the client.

5

u/MenschenToaster Developer and Owner(cafestu.be) 19h ago

I was going at it with a server side focus, since this is the admincraft subreddit, but yes, this is quite dangerous to the client side.

2

u/tehbeard Developer/Server Admin 11h ago

Message signatures, the data for skin textures used in players, player heads, mannequins.

1

u/G4METIME 9h ago

I would guess for any authentication token the client sends to the server.

So there is potential that this can be exploited by anyone sending some malicious request to your server.

1

u/ElenaCurvier3 5h ago

yeah agree

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.

7

u/tehfly 14h ago

As much as I would love to share your confidence, there are ways of breaking out of the containers.

A lot of containers also share the kernel, so there are ways to attack the kernel from within the containers.

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?

3

u/Veradragon 19h ago

No effect for singleplayer or your account directly. A malicious mod or an alternative-compromised system, then there's risk, but in general you're probably fine.

6

u/Mars_Bear2552 Developer 17h ago

if you're running a malicious mod, you're already compromised.

1

u/Krazy_Kristina 22m ago

This is what I was wondering as well.
I play singleplayer but with a bunch of mods. Including e4mc so that I can do multiplayer with a couple friends.

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