(Pwn2Own) Autel MaxiCharger AC Wallbox Commercial ble_process_esp32_msg Stack-based Buffer Overflow Remote Code Execution Vulnerability
A stack-based buffer overflow in the ble_process_esp32_msg function of Autel MaxiCharger AC Wallbox Commercial EV chargers allows network-adjacent attackers to execute arbitrary code without authentication. The flaw arises from copying user-supplied data into a fixed-length stack buffer without validating its length.
This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Autel MaxiCharger AC Wallbox Commercial EV chargers. Authentication is not required to exploit this vulnerability.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the ble_process_esp32_msg function copies a Bluetooth message into a fixed-size stack buffer without first checking the message length.
Impact
A network-adjacent attacker could execute arbitrary code on the charger without authentication.
What the attacker needed
Network-adjacent access (Bluetooth range); no authentication required
The fix
The vulnerability was fixed in firmware versions V1.39.51 (American Standard) and V1.56.51 (European Standard).
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This is a memory corruption bug in an electric vehicle charger. The charger's software copies data from a Bluetooth message into a small fixed-size memory area without checking if the data is too long, so an attacker nearby can overflow that area and run their own code on the device.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.