Skip to main content

Espruino EUVDEUVD-2026-137812

| CVE-2026-138305 LOW
Integer Overflow or Wraparound (CWE-190)
2026-11-29 VulDB GHSA-mmxg-xc24-wfff
1.9
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain local JS execution on device
  2. Delivery
    Call Storage read with oversized length
  3. Exploit
    Overflow offset+length bounds check
  4. Execution
    Over-read adjacent flash storage
  5. Impact
    Disclose 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 offset+length addition integer-overflows and bypasses the >fileLen clamp, causing an out-of-bounds read of flash. Limiting factors: the vector is local (AV:L), not remote; it needs some privilege (PR:L) rather than anonymous access; no user interaction is required; and impact is confined to low-severity information disclosure (VC:L, no integrity or availability impact).

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 if (offset+length>fileLen) in jsfReadFile can be bypassed because the offset+length addition overflows (CWE-190), so an attacker-controlled length escapes the clamp and over-reads flash storage - a low-impact out-of-bounds read, not code execution. The vuln.today Decision label is 'monitor,' consistent with the low score. EPSS and KEV status are not provided in the input; absence of KEV plus a 'monitor' label means there is no indication of active exploitation. The input marks the PoC as 'reference only, not verified as working exploit code' (the GitHub issue #2776), so exploit availability is weak, not confirmed weaponization. No signals conflict here - a genuinely low-risk, locally-scoped issue in a niche embedded interpreter, not a high-CVSS-but-low-risk mismatch.

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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Espruino 2v29

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

Vendor (VulDB) PRIMARY 1.9 MEDIUM
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
vuln.today AI 3.3 LOW

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.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Severity Changed
Nov 29, 2026 - 19:22 NVD
MEDIUM LOW
CVSS changed
Nov 29, 2026 - 19:22 NVD
4.8 (MEDIUM) 1.9 (LOW)
CVE Published
Nov 29, 2026 - 18:45 cve.org
LOW 1.9

DescriptionCVE.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

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Low
niche JavaScript interpreter for hobbyist/embedded microcontrollers, limited enterprise footprint
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High

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.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
Poc
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Low

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2022-25465 HIGH POC
7.8 Mar 05

Espruino 2v11 release was discovered to contain a stack buffer overflow via src/jsvar.c in jsvGetNextSibling. Rated high

CVE-2022-25044 HIGH POC
7.8 Mar 05

Espruino 2v11.251 was discovered to contain a stack buffer overflow via src/jsvar.c in jsvNewFromString. Rated high seve

CVE-2018-20201 HIGH POC
7.8 Dec 18

There is a stack-based buffer over-read in the jsfNameFromString function of jsflash.c in Espruino 2V00, leading to a de

CVE-2018-11595 HIGH POC
7.8 May 31

Espruino before 1.99 allows attackers to cause a denial of service (application crash) and a potential Escalation of Pri

CVE-2024-25201 HIGH POC
7.5 Feb 07

Espruino 2v20 (commit fcc9ba4) was discovered to contain an Out-of-bounds Read via jsvStringIteratorPrintfCallback at sr

CVE-2024-25200 HIGH POC
7.5 Feb 07

Espruino 2v20 (commit fcc9ba4) was discovered to contain a Stack Overflow via the jspeFactorFunctionCall at src/jsparse.

CVE-2018-11598 HIGH POC
7.1 May 31

Espruino before 1.99 allows attackers to cause a denial of service (application crash) and a potential Information Discl

CVE-2018-11593 HIGH POC
7.1 May 31

Espruino before 1.99 allows attackers to cause a denial of service (application crash) and potential Information Disclos

CVE-2026-138304 MEDIUM POC
5.5 Nov 29

Out-of-bounds write in the Espruino JavaScript interpreter (through 2v29) occurs in matchhere() in src/jswrap_regexp.c w

CVE-2018-11594 MEDIUM POC
5.5 May 31

Espruino before 1.99 allows attackers to cause a denial of service (application crash) with a user crafted input file vi

CVE-2018-11592 MEDIUM POC
5.5 May 31

Espruino before 1.98 allows attackers to cause a denial of service (application crash) with a user crafted input file vi

CVE-2018-11591 MEDIUM POC
5.5 May 31

Espruino before 1.98 allows attackers to cause a denial of service (application crash) with a user crafted input file vi

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy