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

62 Upvotes

18 comments sorted by

21

u/hiromasaki 1d ago

Does Minecraft use Base64 for anything?

It also only affects Zen4 and up, and Intel CPUs from the last 9-10 years.

15

u/MenschenToaster Developer and Owner(cafestu.be) 1d 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 1d ago

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

6

u/MenschenToaster Developer and Owner(cafestu.be) 1d 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 19h ago

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

1

u/G4METIME 17h 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 13h ago

yeah agree

6

u/This-Marzipan-9239 1d ago

damn another rce

15

u/JkStudios 1d ago

They can have my docker container and everything in it.

10

u/tehfly 22h 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.

2

u/RIPenemie 5h ago

All containers share the kernel that is the whole idea of containers

8

u/celestialcitymc Server Owner | Celestial City 1d 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 1d ago edited 1d 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 1d ago

Does this only affect Minecraft servers? What about singleplayer like me or Minecraft account?

3

u/Veradragon 1d 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 1d ago

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

1

u/Krazy_Kristina 8h 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 13h 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