Technical impact
Espruino, a firmware for microcontrollers that includes a JavaScript engine, contains an out‑of‑bounds write in the matchhere function of its RegExp engine. The bug is triggered when a purposely crafted string is processed by the regular‑expression matcher, allowing a memory corruption that can lead to arbitrary code execution. The vulnerability is a classic buffer overflow (CWE‑119) and specifically an out‑of‑bounds write (CWE‑787).
Affected Systems
Devices running Espruino firmware up through version 2v29 are impacted. The flaw resides in src/jswrap_regexp.c of the RegExp component. The fix is introduced in commit 54983bbe8f3c3fed46e5416c9e60bf00bbc98137, so any earlier build is vulnerable.
Risk and Exploitability
The CVSS score is 6.9, indicating a medium‑to‑high severity. EPSS data is not available, and the vulnerability is not listed in the CISA KEV catalog. The exploit has been publicly disclosed and can be performed remotely by sending a crafted input to the JavaScript engine, creating a significant risk for exposed devices.