CVE-2026-138305: Espruino Storage jsflash.c jsfReadFile integer overflow
A vulnerability was detected in Espruino up to 2v29. This affects the function jsfReadFile of the file src/jsflash.c of the component Storage Handler. The manipulation of the argument length results in integer overflow. The attack needs to be approached locally. The exploit is now public and may be used. The patch is identified as a596a89e45685ff7464d6f0f94f7509ef2fc8286. Applying a patch is advised to resolve this issue.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Espruinoto a version that resolves this vulnerability.Patch a596a89e45685ff7464d6f0f94f7509ef2fc8286
Event History
Frequently Asked Questions
Which deployments should be considered affected?
Espruino versions up to 2v29 are affected where the Storage Handler's jsfReadFile function in src/jsflash.c is present.
What access does an attacker need to exploit this issue?
Exploitation must be approached locally and requires low-level privileges. No user interaction is required.
Is exploit code available?
Yes. The exploit is reported as public, and the vulnerability is flagged as having a proof of concept.
What remediation is available?
Apply the patch identified as a596a89e45685ff7464d6f0f94f7509ef2fc8286.