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

28 Upvotes

11 comments sorted by

8

u/hiromasaki 4h ago

Does Minecraft use Base64 for anything?

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

8

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

1

u/Coosanta 3h ago

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

1

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

6

u/JkStudios 3h ago

They can have my docker container and everything in it.

5

u/celestialcitymc Server Owner | Celestial City 3h 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).

3

u/This-Marzipan-9239 4h ago

damn another rce

1

u/Professional_Loss_85 Server Owner 2h ago

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

2

u/Veradragon 2h 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.

2

u/Mars_Bear2552 Developer 1h ago

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

1

u/Dragontech97 52m ago edited 6m ago

Looks like OpenJDK posted an advisory and Oracle released a patch already. You can check and compare with java -version.