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.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)1.1%top 33.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Alpine:v3.20pev0.82-r0ALPINE-CVE-2021-45423
Alpine:v3.21pev0.82-r0ALPINE-CVE-2021-45423
Alpine:v3.22pev0.82-r0ALPINE-CVE-2021-45423
Alpine:v3.23pev0.82-r0ALPINE-CVE-2021-45423
Alpine:v3.24pev0.82-r0ALPINE-CVE-2021-45423
Debian:12pev0.81-9DEBIAN-CVE-2021-45423
Ubuntu:22.04:LTSpevno fix listedUBUNTU-CVE-2021-45423

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

Weakness: CWE-120 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References