Vulnerability · Published Mar 13, 2023 · Assigned by mitre
CVE-2021-45423
Critical 9.8
In plain English
A critical-severity buffer overflow in the pev package (Alpine). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 66% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | pev | 0.82-r0 | ALPINE-CVE-2021-45423 |
| Alpine:v3.21 | pev | 0.82-r0 | ALPINE-CVE-2021-45423 |
| Alpine:v3.22 | pev | 0.82-r0 | ALPINE-CVE-2021-45423 |
| Alpine:v3.23 | pev | 0.82-r0 | ALPINE-CVE-2021-45423 |
| Alpine:v3.24 | pev | 0.82-r0 | ALPINE-CVE-2021-45423 |
| Debian:12 | pev | 0.81-9 | DEBIAN-CVE-2021-45423 |
| Ubuntu:22.04:LTS | pev | no fix listed | UBUNTU-CVE-2021-45423 |
Affected products (as reported)
Weakness: CWE-120 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H