Skip to main content

Espruino EUVDEUVD-2026-137811

| CVE-2026-138304 MEDIUM
Out-of-bounds Write (CWE-787)
2026-11-29 VulDB GHSA-3v5p-qm8q-p6f9
5.5
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Reach Espruino regex/scripting interface
  2. Exploit
    Submit regexp with excessive capture groups
  3. Execution
    Trigger out-of-bounds write in matchhere
  4. Impact
    Crash interpreter (denial of service)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the attacker to cause an Espruino instance (versions up to 2v29) to compile/evaluate an attacker-controlled regular expression containing more capture groups than MAX_GROUPS, which drives the out-of-bounds write in matchhere() of src/jswrap_regexp.c. Limiting factors: the device or application must expose an interface that accepts untrusted regex or JavaScript, since Espruino does not process regex from the network on its own; the assigned impact is limited to availability (interpreter crash/DoS) with no confirmed code execution, data disclosure, or integrity loss; and where only trusted operators supply scripts, remote exploitation is not realistic despite the AV:N rating. The only complete fix stated by the evidence is applying the vendor patch (commit 54983bbe8f3c3fed46e5416c9e60bf00bbc98137); no tagged fixed release and no alternative mitigation are given.

Impact

Signals point to a moderate, not urgent, issue. The CVSS 4.0 vector (6.9, AV:N/AC:L/AT:N/PR:N/UI:N) describes network reachability with no authentication or user interaction, but the impact metrics are limited to availability only (VA:L; VC:N/VI:N/VA? all others N), meaning the assessed consequence is a crash/denial of service of the interpreter rather than code execution or data disclosure despite the CWE-787 out-of-bounds-write classification. Exploit maturity is E:P (proof-of-concept), consistent with the input noting a PoC reference that is not verified as working exploit code. No EPSS score and no KEV listing were provided, so there is no evidence of active or widespread exploitation, and the vuln.today decision label is 'this_month' - not act_now or emergency. A key caveat: AV:N assumes the device exposes a remotely reachable interface that evaluates attacker-supplied regular expressions; on many Espruino deployments the JavaScript/regex input is supplied locally by the operator, so genuine remote exposure depends on deployment and should be verified. Overall this reads as a real but lower-priority defect: limited-footprint embedded product, availability-only impact, unverified PoC, no KEV.

Exploit ScenarioDerived

An attacker able to get an Espruino device to evaluate an attacker-controlled regular expression - for example through an application or scripting interface that compiles untrusted regex - supplies a pattern containing more capture groups than MAX_GROUPS, triggering the out-of-bounds write in matchhere() and crashing the interpreter. A public PoC reference exists via the vendor GitHub issue but is not verified as working exploit code, and the assigned metrics indicate availability (DoS) impact rather than code execution.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.5% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 29, 2026

Out-of-bounds write in the Espruino JavaScript interpreter (through 2v29) occurs in matchhere() in src/jswrap_regexp.c when a regular expression with more capture groups than the internal MAX_GROUPS limit is compiled. Affected are devices and applications running Espruino that accept untrusted JavaScript or regular expressions, since the interpreter itself does not process regexes from the network, and the assessed impact is limited to availability (interpreter crash or denial of service) with no confirmed code execution, data disclosure, or integrity loss. A public issue reference for the flaw exists but is not verified as working exploit code, no CISA KEV listing is present, and a vendor patch commit (54983bbe8f3c3fed46e5416c9e60bf00bbc98137) is available.

RemediationAI

Apply the vendor fix commit 54983bbe8f3c3fed46e5416c9e60bf00bbc98137 (https://github.com/espruino/Espruino/commit/54983bbe8f3c3fed46e5416c9e60bf00bbc98137), which adds a guard in matchhere() that raises a 'Too many groups' error once info.groups reaches MAX_GROUPS; the evidence gives no tagged fixed release version, so rebuilding from the patched source or tracking the upstream repository (https://github.com/espruino/Espruino/) is required and the downstream firmware version should be verified independently. The vendor evidence states updating is the only complete fix and offers no alternative mitigation, so as a compensating measure until patched builds are deployed, restrict which interfaces may pass externally supplied JavaScript or regular expressions into the interpreter (for example, do not expose a regex-evaluation endpoint to untrusted clients), accepting that this removes functionality for those users; note the flaw's assessed impact is limited to availability (crash/DoS), so the trade-off is service availability versus reduced input surface. Monitor the upstream issue at https://github.com/espruino/Espruino/issues/2775 and the VulDB entry at https://vuldb.com/vuln/445128 for updated release information.

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 small-footprint JavaScript interpreter for microcontrollers, and its regular-expression engine lives in src/jswrap_regexp.c, where matchhere() walks the compiled pattern and tracks capture-group state in a matchInfo structure. The flaw is a CWE-787 out-of-bounds write: the group counter was compared against MAX_GROUPS but incremented after the check in a way that allowed it to exceed the buffer's bounds, so a pattern with too many capture groups writes past the intended storage. The upstream fix changes the logic to return a JavaScript 'Too many groups' error and bail out when info.groups reaches MAX_GROUPS, and to increment the counter unconditionally after that guard, so the group index can no longer run past the limit. The CPE string identifies the affected product only generically (n/a:espruino), matching all versions up to 2v29 per the description.

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 5.5 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P
vuln.today AI 5.3 MEDIUM

Trigger is a crafted regexp needing no auth or interaction (AV:N/AC:L/PR:N/UI:N); the diff and vendor metrics show only interpreter crash, so C:N/I:N and A:L, with AV:N contingent on a remotely reachable regex interface.

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

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

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

Lifecycle Timeline

2
CVSS changed
Nov 29, 2026 - 19:22 NVD
6.9 (MEDIUM) 5.5 (MEDIUM)
CVE Published
Nov 29, 2026 - 18:30 cve.org
MEDIUM 6.9

DescriptionCVE.org

A security vulnerability has been detected in Espruino up to 2v29. Affected by this issue is the function matchhere of the file src/jswrap_regexp.c of the component RegExp Engine. The manipulation leads to out-of-bounds write. The attack is possible to be carried out remotely. The exploit has been disclosed publicly and may be used. The identifier of the patch is 54983bbe8f3c3fed46e5416c9e60bf00bbc98137. It is recommended to apply a patch to fix this issue.

Threat Intelligence Overview

EPSS Score
0.5%
Top 62% exploitable
Prevalence
Low
niche embedded/IoT JavaScript interpreter with hobby/maker 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 MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +28
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.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

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

CVE-2018-11590 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

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