CVE-2026-88355 Details
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.
A vulnerability exists in tinyexpr in commit 4a7456e, where an incorrect buffer size calculation leads to undefined behavior. This issue arises in the 'new_expr()' function, which allocates insufficient memory for arity-0 expression nodes, such as constants, variables, and zero-argument functions. The function incorrectly assumes that a smaller allocation can accommodate a full 'te_expr' object, resulting in a buffer underflow. This vulnerability can cause a deterministic process termination in builds in instrumented with Undefined Behavior Sanitizer (UBSan).
The vulnerability has been addressed in a commit that modifies the memory allocation in 'new_expr()' to ensure it always allocates enough space for a full 'te_expr' object. Users should apply this update to mitigate the vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 24, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/codeplea/tinyexpr/issues/145 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/szaydel/tinyexpr/commit/fe7459728c2ab8d2f91365abe56601cdd0e24f9b | [email protected] | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| tinyexpr | 4a7456e |
CPE
Remediation
| |
Change History
1 change record found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 24, 2026 | New CVE Received | [email protected] |
Volerion