# CVE-2026-88355: An incorrect buffer size calculation vulnerability exists in tinyexpr commit 4a7456e in newexpr().

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- 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.41%, higher than 37% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-24T00:00:00.000Z
- Modified: 2026-10-06T18:16:57.013Z
- Weaknesses: CWE-131
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: mitre

## Description

An incorrect buffer size calculation vulnerability exists in tinyexpr commit 4a7456e in new_expr(). For arity-0 expression nodes, including constants, variables, and zero-argument functions, the function allocates less memory than sizeof(te_expr) but treats the returned allocation as a complete te_expr object. This results in undefined behavior and can cause deterministic process termination in UBSan-instrumented builds.

(As written by CVE List.)

## Affected

- Unspecified product: n/a

## References

- <https://github.com/codeplea/tinyexpr/issues/145> (exploit)
- <https://github.com/szaydel/tinyexpr/commit/fe7459728c2ab8d2f91365abe56601cdd0e24f9b>

## Sources

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

---

Page: https://cve.day/CVE-2026-88355 · Whole record: https://cve.day/CVE-2026-88355.json · Rebuilt by cve.day 2026-11-25T22:59:40.773Z
