Blog

Latest news, tutorials and updates from the LiquidBounce team

Back to all articles
Minecraft2Shell Vulnerability
November 24, 202627 viewsCommunitySecurity

Minecraft2Shell Vulnerability

By Izuna

A Minecraft server could run code on your PC through a resource pack. Mojang fixed it for 26.3 on November 24. To get the fix, close the game and start it again from your launcher.

What happened

The bug is called Minecraft2Shell. A resource pack can carry a font, and a crafted font could break out of FreeType, the library Minecraft draws text with. GitHub user bikini published a working demo on November 22 without telling Mojang first. In the video chiikabu posted, Minecraft closes and Windows Calculator opens.

Calculator is only the harmless stand-in for whatever a server wants to start. We don't know of any attack on players.

FreeType fixed its side back in April, but Minecraft still shipped the old version. Alexander01998 of the Wurst Client warned everyone, and five hours later slicedlime from Mojang announced the fix.

Which versions

MinecraftStatus
26.3 and every 26.4 snapshotFixed once you restart
1.20.5 to 26.2No fix. The demo fails here, a changed attack may not
1.20.4 and olderNever affected

The Wurst Wiki tested the versions and has the details. The demo only runs on Windows, but the bug was there on every platform. Linux on ARM has no fixed library yet, so keep declining server packs there.

LiquidBounce 0.43 runs on 26.3, so it had the bug like every other 26.3 client, and a restart fixes it. That also covers older servers you join through ViaFabricPlus, because your own client draws the font.

What to do

YouDo this
Play on 26.3 with LiquidLauncher or the official launcherClose every game window, restart the launcher and start the game again
Use another launcherCheck that it loads Mojang's updated libraries
Play on 1.20.5 to 26.2Don't accept server resource packs. Click Edit on a server and set Server Resource Packs to Disabled
Install packs yourself on those versionsOnly from places you trust. Any pack can carry a font
Found a mod that claims to fix itYou don't need one on 26.3, and we haven't checked any of them
Never want a server's packTurn on ResourceSpoofer under Spoofer in our multiplayer menu. The server is told the pack loaded, and nothing gets downloaded

Questions go to our Discord.