CVE-2021-45423
A Buffer Overflow vulnerabilityexists in Pev 0.81 via the pe_exports f ...
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD.
Description
A Buffer Overflow vulnerabilityexists in Pev 0.81 via the pe_exports function from exports.c.. The array offsets_to_Names is dynamically allocated on the stack using exp->NumberOfFunctions as its size. However, the loop uses exp->NumberOfNames to iterate over it and set its components value. Therefore, the loop code assumes that exp->NumberOfFunctions is greater than ordinal at each iteration. This can lead to arbitrary code execution.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| alpine 3.18 | pev | 0.82-r0 |
| alpine 3.19 | pev | 0.82-r0 |
| alpine 3.20 | pev | 0.82-r0 |
| alpine 3.21 | pev | 0.82-r0 |
| alpine 3.22 | pev | 0.82-r0 |
| alpine 3.23 | pev | 0.82-r0 |
| alpine 3.24 | pev | 0.82-r0 |
| alpine edge | pev | 0.82-r0 |
| debian 11 | pev | 0.81-3+deb11u1 |
| debian 12 | pev | 0.81-9 |
| echo | pev | 0.81-9 |