Pedal to the Bare Metal: Rehosting and Fuzzing the Tesla Wall Connector to Start a Worm

No ratings

Presented at Black Hat USA 2026 by

Bare-metal embedded systems are notoriously difficult to secure, which is worrying, as exploits in this domain can blow things up and shut things down. So far, research on this type of embedded system has been rare because automated security analysis techniques were unavailable. Now, after our seven-year-long research on rehosting-based firmware fuzzing, a technique that allows firmware to run in an auto-generated execution environment, finding security vulnerabilities in bare-metal firmware has become feasible at scale.In this Briefing, we will share a previously unknown part of our story leading up to our Master of Pwn title from Pwn2Own Automotive in Tokyo this year. Specifically, we will show how previously "unfuzzable" targets, such as the bare-metal firmware of the Tesla Universal Wall Connector, could be fuzzed via rehosting, allowing us to discover critical exploitable vulnerabilities. We will explain how bare-metal firmware works, the challenges involved in its fuzzing, and how we overcame the encountered obstacles.The result - we discovered multiple exploitable vulnerabilities in the Tesla charger, with the most notable being (1) RCE through an exploitable integer underflow in the UDS-over-CAN update mechanism reachable via the charge plug and (2) a secure boot bypass. When chained together, these security findings allowed us to fully compromise the Tesla charger, including re-enabling JTAG and planting a persistent backdoor that survives firmware updates.Finally, we investigated how this attack vector could enable the propagation of autonomous wormable exploits against the EV charging infrastructure. To this end, we revisited exploits from our previous Pwn2Own Automotive vulnerability research of in-vehicle infotainment systems (IVIs) and charging stations. In our Briefing, we will discuss and show a video of an end-to-end attack that autonomously spreads from the Tesla charger into the IVI of a nearby parked car and from there back into the charging station of a different vendor. This, for the first time, demonstrates a wormable attack, the kind of which can enable charging infrastructure to further spread malware like a disease.We will conclude the Briefing with the consequences of our research, specifically the threat of an orchestrated shutdown of larger parts of the EV charging infrastructure, or even causing electrical grid instabilities. We hope that our work on firmware rehosting will motivate other researchers to continue the security analysis of more systems that are based on bare-metal firmware.