Espruino integer overflow in storage file read handler
Affects Espruino's jsflash.c storage code, and no fixed version is named. The fix is patch a596a89.
- Exploited
- No known exploitation
- Fix
- Vendor patch: a596a89
- Who is exposed
- Specific setups only
Summary
A local attacker with low-privilege access can trigger an integer overflow in the jsfReadFile function of Espruino's storage handler by manipulating its length argument. Applying the available patch is advised to resolve the issue.
Written by a model
Original description
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.
Who should check
Teams shipping Espruino firmware that includes the jsflash storage handler (src/jsflash.c, jsfReadFile)
“Minor tweak to fix out of bounds flash read if huge file length given”
What to do
Apply the vendor's patch: a596a89.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-138305 (Espruino Storage jsflash.c jsfReadFile integer overflow), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-138305 (entry last updated 2026-11-29):
Affected:
- n/a Espruino: versions 2v29
Vendor patches: a596a89 (source: https://github.com/espruino/Espruino/commit/a596a89e45685ff7464d6f0f94f7509ef2fc8286). Check each asset for these patch ids, not only its version.
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: local access, low-privilege login, no user action.
CISA KEV: CVE-2026-138305 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-138305 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/espruino/Espruino/commit/a596a89e45685ff7464d6f0f94f7509ef2fc8286
- https://vuldb.com/vuln/445129
- https://vuldb.com/vuln/445129/cti
- https://vuldb.com/cve/CVE-2026-138305
- https://vuldb.com/submit/1074814
- https://github.com/espruino/Espruino/
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-138305
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-138305"}.Affected versions
- n/a Espruino2v29
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure5/25Specific setups only
- Reach?/20Unknown. No tracked technology or package matched
- Severity4.8/10CVSS 4.8
- No patch0/5No signal
What would change the score
- Would score about 60 if added to CISA KEV
- Would score about 55 if CISA's SSVC rates exploitation active
- Would score about 20 if CISA's SSVC rates it automatable
Timeline
- CVE published
- First seen by cve.now
Evidence 9
| Kind | Source |
|---|---|
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-138305 |
| Record | NVD · CVE-2026-138305 |
| Public exploit code 1Establishes: Public exploit code exists (Exploit-DB, Metasploit, Nuclei and GitHub). | |
| Exploit | GitHub · espruino/Espruino · Issue #2776 |
| Other links 6 | |
| Advisory | VulDB · Advisory #445129 |
| Advisory | VulDB · Threat intelligence #445129 |
| Advisory | VulDB · CVE-2026-138305 record |
| Advisory | VulDB · Submission #1074814 |
| Patch | GitHub · espruino/Espruino · Commit a596a89e |
| Repository | GitHub · espruino/Espruino · Repository |
Questions about CVE-2026-138305
Is CVE-2026-138305 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
What does this mean?
Giving jsfReadFile a huge file length can make Espruino read outside the bounds of flash memory.
Source: github.com
Which versions are affected by CVE-2026-138305?
Espruino: version 2v29.
Source: cve.now feed data
Am I affected, and how do I check?
The sources name no affected version range. To check a build, look at its Espruino version and whether it includes the jsflash.c storage code, then compare it with commit a596a89.
Source: github.com
How do I fix CVE-2026-138305?
Apply patch a596a89 from the Espruino source, since no fixed version is named.
Source: github.com
Related
- CVE-2026-137456FreeRDP before 3.33.0 Heap Out-of-Bounds Write via ORDER_BOUNDS Integer Overflow
- CVE-2026-135500Privilege escalation due to integer overflow in the Graphics: WebGPU component
- CVE-2026-136918FCEUX before 2.8.0 Heap Out-of-Bounds Write via UNIF MAPR Chunk Length
- CVE-2026-136919FCEUX 2.5.0 before 2.8.0 Heap Out-of-Bounds Write via NES 2.0 PRG ROM Size
- CVE-2026-135433FLTK through 1.4.5 Heap Buffer Overflow via Fl_BMP_Image Row Pointer
- CVE-2026-138151bgpq4 before 1.17 Heap Buffer Overflow via IRRd A<len> Reply Handling
No corrections so far. Something wrong on this page? Report an error.