CVE-2026-138304: Espruino RegExp jswrap_regexp.c matchhere out-of-bounds write
A security vulnerability has been detected in Espruino up to 2v29. Affected by this issue is the function matchhere of the file src/jswrapregexp.c of the component RegExp Engine. The manipulation leads to out-of-bounds write. The attack is possible to be carried out remotely. The exploit has been disclosed publicly and may be used. The identifier of the patch is 54983bbe8f3c3fed46e5416c9e60bf00bbc98137. It is recommended to apply a patch to fix this issue.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch 54983bbe8f3c3fed46e5416c9e60bf00bbc98137
Event History
Frequently Asked Questions
Which deployments are affected?
Espruino versions up to 2v29 are identified as affected. The issue is in the RegExp Engine, specifically the matchhere function in src/jswrap_regexp.c.
Does exploitation require authentication or user interaction?
No. The supplied severity vector indicates network reachability, low attack complexity, no privileges required, and no user interaction.
What is the likely impact of successful exploitation?
Successful exploitation causes an out-of-bounds write and is rated as having low availability impact, with no confidentiality or integrity impact indicated by the supplied vector. A public exploit has been disclosed.
What should be done if this affects an environment?
Apply the patch identified as 54983bbe8f3c3fed46e5416c9e60bf00bbc98137. The provided data does not specify alternative mitigations if patching cannot be performed immediately.