====== 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. Manually installing and then enabling a resource pack can also trigger this vulnerability.
Minecraft2Shell was published on November 22, 2026 by GitHub user bikini.((https://github.com/bikini/minecraft2shell))
===== 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 [[mc>24w03a]] ([[mc>Java_Edition_1.20.5|1.20.5]]) on all platforms. **This should not be treated as a 26.3-only or Windows-only bug!**
FreeType 2.15.0 [[https://github.com/freetype/freetype/commit/1803559c4ee4|fixes the bug]], but at the time of writing, no Minecraft version exists that has updated to this FreeType version.
An [[https://x.com/slicedlime/status/2125288742382453097|announcement from slicedlime]] suggests that the official Minecraft launcher now overrides the FreeType dependency in vulnerable Minecraft versions to a patched version. Details are not yet clear, 26.4-pre-1 remains untested.
^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.|Don't accept resource packs from untrusted servers and don't manually install untrusted resource packs.|
|26.3|Vulnerable|Version used in bikini's proof-of-concept. Independently reproduced.|Don't accept resource packs from untrusted servers and don't manually install untrusted 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 [[https://gitlab.freedesktop.org/freetype/freetype/-/work_items/1403|FreeType #1403]] which seems to accidentally protect against bikini's exploit. A modified version of the attack may still be possible.|Don't accept resource packs from untrusted servers and don't manually install untrusted 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 [[https://gitlab.freedesktop.org/freetype/freetype/-/work_items/1403|FreeType #1403]] which seems to accidentally protect against bikini's exploit. A modified version of the attack may still be possible.|Don't accept resource packs from untrusted servers and don't manually install untrusted resource packs.|
|1.20.4 and older|**Not affected**|Does not use FreeType. The older stb_truetype library doesn't support TrueType hinting at all, so the attack is impossible here.|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 [[https://gitlab.freedesktop.org/freetype/freetype/-/work_items/1419|FreeType #1419]]. The same bug affected Firefox 6 months earlier and was assigned [[https://bugzilla.mozilla.org/show_bug.cgi?id=2038537|CVE-2026-10701]].
{{tag>security}}