# CVE-2026-138304: Espruino RegExp jswrap_regexp.c matchhere out-of-bounds write

- Severity: Medium 6.9 (CVSS:4.0, scored by VulDB) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-29T18:30:15.683Z
- Modified: 2026-11-30T21:17:28.130Z
- Weaknesses: CWE-119, CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: VulDB

## Description

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.

(As written by CVE List.)

## Affected

- Espruino: 2v29

## Every score

- VulDB: CVSS:4.0 6.9 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`
- VulDB: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C`
- VulDB: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C`
- VulDB: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P/E:POC/RL:OF/RC:C`

## References

- <https://github.com/espruino/Espruino/issues/2775> (exploit, issue-tracking)
- <https://vuldb.com/vuln/445128> (technical-description, vdb-entry)
- <https://vuldb.com/vuln/445128/cti> (permissions-required, signature)
- <https://vuldb.com/cve/CVE-2026-138304> (third-party-advisory)
- <https://vuldb.com/submit/1074812> (third-party-advisory)
- <https://github.com/espruino/Espruino/commit/54983bbe8f3c3fed46e5416c9e60bf00bbc98137> (patch)
- <https://github.com/espruino/Espruino/> (product)

## Sources

- CVE List: [CVE-2026-138304](https://www.cve.org/CVERecord?id=CVE-2026-138304), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-138304](https://nvd.nist.gov/vuln/detail/CVE-2026-138304), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-138304 · Whole record: https://cve.day/CVE-2026-138304.json · Rebuilt by cve.day 2026-11-30T21:32:41.136Z
