Description
Espruino 2v29 (commit bffc6d0) contains a stack-based buffer overflow vulnerability in the JavaScript error stack-trace handling path on 64-bit builds. A remote attacker can supply JavaScript input that triggers an exception and reaches jslPrintTokenLineMarker(), which passes the address of a 4-byte int column variable to jsvGetLineAndCol() as a size_t pointer. jsvGetLineAndCol() performs an 8-byte write through the mismatched pointer, overwriting adjacent stack memory.
Published: 2026-09-24
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Apply Patch
AI Analysis

Impact

Espruino 2v29 contains a stack‑based buffer overflow in the error stack‑trace handling path. The flaw arises when an exception causes jslPrintTokenLineMarker() to pass the address of a 4‑byte integer as a size_t pointer to jsvGetLineAndCol(), which then writes 8 bytes to an invalid location, overwriting adjacent stack data. The out‑of‑bounds write can corrupt control data such as return addresses, potentially giving a remote attacker the ability to execute arbitrary code.

Affected Systems

The vulnerable code is part of Espruino version 2v29, identified by the commit bffc6d0. Only 64‑bit builds are affected. The flaw exists in the core JavaScript engine handling error stack traces; other platform components are not directly impacted.

Risk and Exploitability

The CVSS score is 7.5, the EPSS score is below 1%, and the flaw is not listed in the CISA KEV catalog. The likely attack vector is that a remote attacker can supply arbitrary JavaScript that triggers an exception and invokes the faulty stack‑trace routine. Successful exploitation would require control over the input to the JavaScript engine. It is inferred that, because the vulnerability affects only the internal stack of the process, exploitation could allow escalation within the host environment.

Generated by OpenCVE AI on September 26, 2026 at 06:59 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Espruino to a version that includes the stack‑overflow fix, for example by pulling the latest commit that resolves the issue.
  • If upgrading is not immediately possible, disable error stack‑trace generation or avoid executing untrusted JavaScript that can trigger exceptions.
  • Restrict access to the JavaScript engine so that only trusted users or code can invoke the interpreter.

Generated by OpenCVE AI on September 26, 2026 at 06:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 26 Sep 2026 07:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Sat, 26 Sep 2026 07:15:00 +0000

Type Values Removed Values Added
Title Stack-Based Buffer Overflow in Espruino JavaScript Error Handling

Fri, 25 Sep 2026 16:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-121
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}


Fri, 25 Sep 2026 09:30:00 +0000

Type Values Removed Values Added
First Time appeared Espruino
Espruino espruino
Vendors & Products Espruino
Espruino espruino

Thu, 24 Sep 2026 20:45:00 +0000

Type Values Removed Values Added
Description Espruino 2v29 (commit bffc6d0) contains a stack-based buffer overflow vulnerability in the JavaScript error stack-trace handling path on 64-bit builds. A remote attacker can supply JavaScript input that triggers an exception and reaches jslPrintTokenLineMarker(), which passes the address of a 4-byte int column variable to jsvGetLineAndCol() as a size_t pointer. jsvGetLineAndCol() performs an 8-byte write through the mismatched pointer, overwriting adjacent stack memory.
References

Subscriptions

Espruino Espruino
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-09-25T15:14:38.255Z

Reserved: 2026-09-10T00:00:00.000Z

Link: CVE-2026-88388

cve-icon Vulnrichment

Updated: 2026-09-25T15:13:23.655Z

cve-icon NVD

Status : Deferred

Published: 2026-09-24T21:18:57.247

Modified: 2026-09-25T16:17:29.213

Link: CVE-2026-88388

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-26T07:00:12Z

Weaknesses
  • CWE-121

    Stack-based Buffer Overflow