ITEN

Home › Articles › Minecraft Java, Mojang fixes the “Minecraft2Shell” flaw in 26.3. Older versions will be updated in batches

Minecraft Java, Mojang fixes the “Minecraft2Shell” flaw in 26.3. Older versions will be updated in batches

A vulnerability in the font library allowed a malicious server or resource pack to run code on the player's PC. Mojang fixed it through the official launcher for 26.3 and 26.4 Pre-Release 1, then for 26.2 and 26.1; for older versions the fix will arrive in batches.

Statcade graphic: Minecraft Java, Mojang fixes the “Minecraft2Shell” flaw in 26.3. Older versions will be updated in batches
Image: Statcade graphic based on data from @slicedlime on X; official Mojang manifest; Wurst client wiki

Mojang has fixed a critical security flaw in Minecraft: Java Edition. The vulnerability, dubbed “Minecraft2Shell”, was made public on 22 November by a GitHub user with a working demonstration. It is not in the game's code but in FreeType, the library that draws characters: a resource pack with a specially crafted TrueType font could cause an out-of-bounds memory write and run arbitrary code on the player's computer. It was enough to accept the pack offered by a server, or to install and activate it manually. The demonstration concerns 26.3 on Windows, but according to the Wurst client wiki the vulnerable version of FreeType is present in all versions from 1.20.5 onwards, on every system.

On Tuesday 24 November at 19:00 Rome time, slicedlime, a Mojang developer, announced the fix on X: those using the official launcher must close all game sessions and restart it to receive the updated library. Those using third-party launchers should check that they have updated their libraries from the official manifest. Mojang's public manifest confirms that 26.3 and 26.4 Pre-Release 1 now download FreeType 2.15.0, the version that closes the bug. On the afternoon of 25 November FreeType 2.15.0 also reached 26.2 and 26.1, while the 1.21 versions, such as 1.21.4, still use the previous libraries. On Wednesday 25 November slicedlime explained that versions are being patched “in batches”, based on the library versions they bind to, with priority given to 26.3 and later. He also clarified that the font rendering library is not included in the server.

Until the fix arrives, anyone playing versions earlier than 26.1 would do well to avoid resource packs and servers they do not trust.

Sources: @slicedlime on X; official Mojang manifest; Wurst client wiki. Text by Statcade.

Support Statcade

If Statcade's data is useful to you, you can buy us a coffee on Ko-fi.

Buy us a coffee on Ko-fi (opens in a new tab)

The week’s numbers

One email a week, with video game numbers. No third-party promotions.

Sign-up is for people aged at least 14. We send you a confirmation email: you join the list only after you click the link.