Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach Espruino regex/scripting interface
-
ExploitSubmit regexp with excessive capture groups
-
ExecutionTrigger out-of-bounds write in matchhere
-
ImpactCrash 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
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.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.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
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.
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.
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
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
Espruino before 1.99 allows attackers to cause a denial of service (application crash) with a user crafted input file vi
EUVD-2026-137811
GHSA-3v5p-qm8q-p6f9
NVD
CVE.org
EPSS
VulDB
Exploit-DB