Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain local JS execution on device
-
DeliveryCall Storage read with oversized length
-
ExploitOverflow offset+length bounds check
-
ExecutionOver-read adjacent flash storage
-
ImpactDisclose out-of-bounds data
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires local, low-privilege access that lets the attacker invoke Espruino's Storage read path (jsfReadFile) with an attacker-controlled length argument - in practice, the ability to execute JavaScript on the device (REPL or loaded script). The specific trigger per the patch is supplying a length large enough that the |
| Impact | All signals converge on LOW real-world priority. The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:L/UI:N) describes a local, low-privilege-required flaw with only low confidentiality impact and no integrity or availability impact, yielding a base score of just 1.9. The source-code evidence confirms the mechanism precisely: the bounds check |
| Exploit ScenarioDerived | An attacker who can already run JavaScript on an Espruino device (e.g., via the REPL or loaded code) calls a Storage read operation with a crafted large length value; the offset+length addition overflows, bypassing the length clamp so jsfReadFile returns bytes beyond the intended file boundary, disclosing adjacent flash contents. A public PoC reference exists (GitHub issue #2776) but is not verified as working exploit code, and realistic impact is limited to low-severity information disclosure. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 29, 2026
An integer overflow in Espruino's flash storage read path (jsfReadFile in src/jsflash.c) in versions up to 2v29 lets a local attacker who can execute JavaScript on the device (via the REPL or a loaded script) supply a length value that overflows the offset+length bounds check and triggers an out-of-bounds read of flash memory. The assessed impact is limited to low-severity information disclosure with no integrity or availability effect, and the attack requires local, low-privilege access rather than remote reach. A public issue reference exists but is not verified as working exploit code, there is no confirmed active exploitation, and priority signals place this at a monitoring level; the vendor fix is upstream commit a596a89e45685ff7464d6f0f94f7509ef2fc8286.
RemediationAI
Apply upstream commit a596a89e45685ff7464d6f0f94f7509ef2fc8286 (https://github.com/espruino/Espruino/commit/a596a89e45685ff7464d6f0f94f7509ef2fc8286), which replaces the overflow-prone offset+length>fileLen clamp in jsfReadFile with length > fileLen-offset; the vendor classifies this as a patch and advises applying it, though no tagged release number containing the fix is given in the available data, so verify that any firmware build you deploy includes the commit. Because the fix is a one-line bounds-check correction, rebuilding firmware from a post-fix checkout is the complete remedy and carries no behavioral trade-off beyond rejecting oversized length requests. Where firmware cannot be rebuilt immediately, reduce exposure by restricting who can execute JavaScript on the device - disabling or password-protecting the REPL, avoiding loading untrusted scripts, and limiting physical/console access - since the flaw is only reachable locally by a party able to call the storage read path with an attacker-controlled length. Consult https://vuldb.com/vuln/445129 and https://github.com/espruino/Espruino/issues/2776 for details; note that the public issue reference is not verified as working exploit code, so this is a monitoring-priority item rather than an emergency.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Espruino is a JavaScript interpreter for microcontrollers, and src/jsflash.c implements its external flash storage handler, exposing file-style reads to interpreted JavaScript. The defect is CWE-190 (integer overflow): the original clamp if (offset+length>fileLen) length=fileLen-offset; performs a signed integer addition of the caller-supplied offset and length before comparing against the file length, so a length large enough to wrap offset+length past INT_MAX yields a negative or small sum that passes the >fileLen test and leaves the oversized length intact, driving an out-of-bounds read. The upstream fix rewrites the check as if (length > fileLen-offset) length=fileLen-offset;, which avoids the overflowing addition entirely. The affected component is the storage handler reached through normal JavaScript file-read APIs; exploitation therefore presupposes the ability to run JavaScript on the device with a low-privileged local position, consistent with the assessed CVSS:3.1 vector AV:L/AC:L/PR:L/UI:N, with only confidentiality impact (VC:L).
Know when Espruino gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P
Local JS execution with controlled length is needed (AV:L, PR:L); the overflow is deterministically triggerable (AC:L); impact is a bounded flash over-read, so C:L with no integrity/availability effect.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.
Espruino 2v11 release was discovered to contain a stack buffer overflow via src/jsvar.c in jsvGetNextSibling. Rated high
Espruino 2v11.251 was discovered to contain a stack buffer overflow via src/jsvar.c in jsvNewFromString. Rated high seve
There is a stack-based buffer over-read in the jsfNameFromString function of jsflash.c in Espruino 2V00, leading to a de
Espruino before 1.99 allows attackers to cause a denial of service (application crash) and a potential Escalation of Pri
Espruino 2v20 (commit fcc9ba4) was discovered to contain an Out-of-bounds Read via jsvStringIteratorPrintfCallback at sr
Espruino 2v20 (commit fcc9ba4) was discovered to contain a Stack Overflow via the jspeFactorFunctionCall at src/jsparse.
Espruino before 1.99 allows attackers to cause a denial of service (application crash) and a potential Information Discl
Espruino before 1.99 allows attackers to cause a denial of service (application crash) and potential Information Disclos
Out-of-bounds write in the Espruino JavaScript interpreter (through 2v29) occurs in matchhere() in src/jswrap_regexp.c w
Espruino before 1.99 allows attackers to cause a denial of service (application crash) with a user crafted input file vi
Espruino before 1.98 allows attackers to cause a denial of service (application crash) with a user crafted input file vi
Espruino before 1.98 allows attackers to cause a denial of service (application crash) with a user crafted input file vi
EUVD-2026-137812
GHSA-mmxg-xc24-wfff
NVD
CVE.org
EPSS
VulDB
Exploit-DB