This is an old revision of the document!
Table of Contents
Minecraft2Shell Vulnerability
Minecraft2Shell is a remote-code-execution (RCE) vulnerability affecting Minecraft: Java Edition.
Server owners can exploit this vulnerability by sending a specially crafted resource pack. If accepted, this resource pack can then force your computer to run arbitrary code.
Minecraft2Shell was published on November 22, 2026 by GitHub user bikini.1)
Root cause
A resource pack can supply a TrueType font containing hinting instructions, small programs that adjust letter shapes to fit the pixel grid. Minecraft asks FreeType to draw a glyph, and due to a FreeType bug, the crafted instructions then trigger an out-of-bounds write in native memory.
Affected versions
While bikini's proof-of-concept only demonstrates Minecraft 26.3 on Windows, vulnerable FreeType versions are used in all Minecraft: Java Edition versions since 24w03a (1.20.5) on all platforms. This should not be treated as a 26.3-only or Windows-only bug!
FreeType 2.15.0 fixes the bug, but at the time of writing, no Minecraft version exists that has updated to this FreeType version.
| Minecraft version(s) | Status | Notes | Workarounds |
|---|---|---|---|
| 26.4-snapshot-10 | Vulnerable | Still uses FreeType 2.14.3. bikini's proof-of-concept still works here. | Do not accept resource packs. |
| 26.3 | Vulnerable | Version used in bikini's proof-of-concept. Independently reproduced. | Do not accept resource packs. |
| 26.1 - 26.2 | Uncertain | Uses FreeType 2.14.1, which has the same unfixed bounds calculation, but running bikini's proof-of-concept against it failed. Cause seems to be a second bug FreeType #1403 which seems to accidentally protect against bikini's exploit. A modified version of the attack may still be possible. | Do not accept resource packs. |
| 1.20.5 - 1.21.11 | Uncertain | Uses FreeType 2.13.2, which has the same unfixed bounds calculation, but running bikini's proof-of-concept against it failed. Cause seems to be a second bug FreeType #1403 which seems to accidentally protect against bikini's exploit. A modified version of the attack may still be possible. | Do not accept resource packs. |
| 1.20.4 and older | Not affected | Does not use FreeType. No equivalent bug found in the older stb_truetype library. | Relax, you're good. |
CVEs and bug tracker IDs
No Minecraft-specific CVE or Mojang bug tracker ID has been assigned. The underlying FreeType bug is tracked under FreeType #1419. The same bug affected Firefox 6 months earlier and was assigned CVE-2026-10701.
