Drag the artwork to explore. Use the arrow keys when it is focused.

Security & ExploitsJava Edition

Minecraft2Shell Is Patched for 26.x, but 1.20.5 to 1.21.11 Are Still Exposed

6 min read

The Minecraft2Shell bug, which lets a malicious server resource pack run code on a Java player’s PC, is now patched in every current version of the game, but not in the old 1.20.5 to 1.21.11 releases that a lot of modded players still use. We checked Mojang’s own version files on November 30: 26.3, 26.2, 26.1.2 and 26.4 Pre-Release 2 now load a FreeType 2.15.0 build, while 1.21.11 still loads the old LWJGL 3.3.3 FreeType library.

  • Nov 22Public exploit posted, with no warning to Mojang
  • Nov 24Mojang patches 26.3 through the launcher
  • 2.15.0FreeType version with the fix
  • 1.20.5–1.21.11Versions still on the old library
Minecraft 26.3 connected to a test server with a log window open beside it
The public demo starts with an ordinary-looking 26.3 client joining a server that sends a resource pack.

What Minecraft2Shell is

Since 1.20.5, Java Edition draws TrueType fonts from resource packs with FreeType, an open-source font library. A crafted font can carry hinting instructions that make FreeType write outside its memory buffer while the game draws text, and the attacker turns that write into code running on your computer, Cyber Kendra explains. The public proof of concept was published on GitHub on November 22 by a user called bikini without telling Mojang first, and it was shown working on 26.3 on Windows x64, minecraft.pl reports. FreeType had already fixed the underlying bug in version 2.15.0, but Minecraft was still shipping 2.14.3.

There are two ways in: a server sends you a resource pack with the bad font and you accept it, or you install such a pack yourself. The published demo does not skip the normal “download this resource pack?” prompt, but a server you have already set to Enabled loads its pack without asking, Minecraft.How notes.

End of the Minecraft2Shell demo: the game window is gone and Windows Calculator is open
Seconds later the game is gone and Windows Calculator is open: the classic sign that the pack ran its own code on the PC.

KasaiSora’s video walks through how the font trick works and was updated once Mojang shipped the fix:

Which versions are fixed?

Minecraft Java Font library in Mojang’s files (Nov 30) Status
26.4 Pre-Release 2 lwjgl-freetype 3.4.3-mojang-2.15.0 Fixed
26.3 lwjgl-freetype 3.4.3-mojang-2.15.0 Fixed since November 24
26.1.2 and 26.2 lwjgl-freetype 3.4.1-mojang-2.15.0.3 Fixed (other trackers still list these as open)
1.20.5 to 1.21.11 lwjgl-freetype 3.3.3 (FreeType 2.13.2) Not fixed; the public demo is unconfirmed here, but the bug is in the library
1.20.4 and older No FreeType Not affected

The first fix came fast. About five hours after Wurst developer Alexander01998 warned players, Mojang’s slicedlime said a critical issue in a library used by Java Edition had been fixed and told players to close the game and restart the official launcher, as Wurst shared on X. Mojang did it by pointing 26.3’s version file at a patched FreeType build, not by shipping a new game version, so there is no new version number to look for. LiquidBounce’s write-up and SquidServers still list 26.1 to 26.2 as unpatched, but Mojang’s current files for those versions now name a 2.15.0 build too.

What should you do?

  1. On 26.1 to 26.4: close every Minecraft window, restart the official launcher and start the game again so it downloads the new library.
  2. To check it worked: open your .minecraft folder, then libraries/org/lwjgl/lwjgl-freetype. A folder named 3.4.3-mojang-2.15.0 (26.3 and 26.4) or 3.4.1-mojang-2.15.0.3 (26.1 and 26.2) means your launcher has downloaded the fixed library. Only 3.3.3 there means it hasn’t.
  3. Using Prism, MultiMC, the Modrinth App or another launcher: make sure it re-reads Mojang’s version files. The mc2shell-fix project says Prism Launcher, like the official launcher, already downloads the patched libraries for 26.x. Lunar Client’s changelog says its game update v2.23.22 (November 24) fixed the resource-pack vulnerability, so restart Lunar to pick it up. One client team found its launcher never re-downloaded a version file it already had, so installs made before the fix kept the old library. Deleting and recreating the instance, or updating the launcher, forces a fresh copy.
  4. On 1.20.5 to 1.21.11: on servers you don’t fully trust, click Edit in the server list and set Server Resource Packs to Disabled or Prompt, and only install packs from sources you trust.
  5. If you must play an old version on public servers: the community stopgap mc2shell-fix stops fonts from running their hinting code on 1.20.5–1.21.11, as a Java agent or a Fabric, Forge or NeoForge mod. Mojang has not reviewed it, and its own readme says you don’t need it on 26.x.

For server owners

Your server can’t patch players’ clients, but it can avoid being the delivery route. Only send resource packs you built or checked yourself, host them where nobody else can swap the file, and keep the SHA-1 hash in server.properties so clients reject a changed pack. If a player reports a crash right after your pack loads, take the pack down until you know why. Players on old modpacks are the ones still exposed.

What it means

This is the second Java runtime-level scare in two weeks after Java4Shell, and the contrast is telling: Mojang patched Minecraft2Shell for current versions within days through the launcher, while its bundled Java runtimes still haven’t been updated for Java4Shell. The gap now is the old versions. 1.21.1 is still one of the most common targets for big NeoForge modpacks, and Mojang’s own 1.21.1 file still lists the old lwjgl-freetype 3.3.3 library on November 30, just like 1.21.11, so modded players are the ones who need to take resource packs seriously until Mojang backports the fix.

Quick answers

Is Minecraft2Shell fixed?

Yes for 26.1.2, 26.2, 26.3 and the 26.4 pre-releases once you restart the official launcher. No for 1.20.5 to 1.21.11.

Do I need to update Minecraft?

There is no new version number. Close the game and restart the launcher so it downloads the patched font library.

Is 1.20.1 affected?

No. Versions up to 1.20.4 don’t use FreeType, so this attack doesn’t apply to them.

Sources 8

Did you enjoy this story?