Incorrect Buffer Size Calculation in Tinyexpr Leading to Process Crash
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| n/a | n/a | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Codeplea | Tinyexpr |
|
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.415% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Title | Incorrect Buffer Size Calculation in Tinyexpr Leading to Process Crash |
| Type | Values Removed | Values Added |
|---|---|---|
| Title | Buffer Size Miscalculation in tinyexpr's Expression Parser Causes Undefined Behavior and Possible Crash | |
| Weaknesses | CWE-119 |
| Type | Values Removed | Values Added |
|---|---|---|
| Weaknesses | CWE-131 | |
| Metrics |
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Codeplea
Codeplea tinyexpr |
|
| Vendors & Products |
Codeplea
Codeplea tinyexpr |
| Type | Values Removed | Values Added |
|---|---|---|
| Title | Buffer Size Miscalculation in tinyexpr's Expression Parser Causes Undefined Behavior and Possible Crash | |
| Weaknesses | CWE-119 |
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| References |
|