The Nintendo Switch 2 has taken its first real security hit. Security researcher Sammy Hajhamid, who goes by Pepsipu online, has shown a software-only, partial jailbreak of the console that he says “lets us run homebrew, reverse engineer and mod Switch 2 games, back up save files off the Switch, and access most of the Switch 2’s peripherals through MMIO,” Ars Technica reports.
As a proof of concept, Hajhamid put a set of new modded characters into Mario Kart World. Others in the hacking scene are already showing simple demos and early developer tools running on exploited hardware, according to Ars Technica.
How the exploit gets in
The hack relies on the original Switch version of SmileBasic 4, a programming environment that runs on Nintendo hardware. Hajhamid writes that he used OpenAI’s Codex with a custom test harness to probe the SmileBasic interpreter, and that after roughly two weeks of effort it found a 32-bit integer overflow that occurs when items are removed from an array. That bug opened read and write access to parts of system memory. He then found a buffer overflow in the console’s FileSystem services module, which eventually led to native code execution, Ars Technica reports.
The exploit is “tethered,” meaning it needs a macOS or Linux PC on the same network to run a node.js helper tool. It works on the latest Switch 2 firmware, version 23.0.1.
Limits, and Nintendo’s likely response
This is a “userland” exploit, so it keeps homebrew developers inside a relatively small sandbox and falls well short of the kernel-level access that would give full control of the hardware. Ars Technica notes it is far less serious than the unpatchable original Switch exploit from 2018, which forced a hardware redesign.
SmileBasic has a history here. The 3DS version was central to the smilehax exploit in 2016, and Nintendo pulled it from the 3DS eShop soon after. SmileBasic 4 has now been delisted from the Switch eShop worldwide, though Ars Technica reports that a Japanese demo version that may work similarly was still available. The outlet expects the vulnerability to be patched in upcoming firmware, which players will need for many Nintendo online services and future games. Other hackers are already teasing similar exploits that use different games.
Nintendo has not commented on the exploit.
