CVE-2021-45423
Critical · 9.8CVSS
9.8
EPSS
1.1%
Published
Mar 13, 2023
CISA due date
—
Cloudanix analysis
A common Windows file analysis program crashes and can be tricked into running attacker code when it examines certain specially made files.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Stack-based buffer overflow in pe_exports allows out-of-bounds writes when NumberOfNames exceeds NumberOfFunctions, enabling arbitrary code execution.
Why it matters to the business
Processing untrusted PE files with the affected tool can lead to full system compromise, risking data theft or malware deployment on analyst workstations.
How an attack unfolds
An attacker supplies a crafted PE binary where the export directory sets NumberOfNames larger than NumberOfFunctions; when pev parses it, the loop overruns the stack array, overwriting return addresses or function pointers to achieve code execution.
How to fix it
No fixed version is published; replace pev with a maintained PE analysis tool or apply a manual patch that enforces bounds checking on offsets_to_Names using the smaller of NumberOfFunctions and NumberOfNames.
How to confirm the fix worked
Rebuild pev with the bounds check and confirm that files triggering NumberOfNames > NumberOfFunctions no longer cause crashes or unexpected execution; scan source for the original loop pattern in exports.c.
Typical attack path
- Craft malicious PE file with manipulated export table (NumberOfNames > NumberOfFunctions)
- Deliver file to target via email, download, or shared storage
- Victim opens file with vulnerable pev binary
- pe_exports performs out-of-bounds write during export parsing
- Control flow is hijacked to attacker-supplied shellcode
How to detect it
Monitor process execution logs for pev crashes or unexpected child processes when handling PE files; inspect command-line arguments and file paths passed to pev for suspicious binaries.
What your security team should do
- Immediately restrict pev usage to trusted files only
- Inventory all instances of pev 0.81 and earlier across the environment
- Migrate to an actively maintained PE parser before the next audit cycle
- Add pev to the list of disallowed binaries in endpoint policy if alternatives exist
The record
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
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | pev | 0 | 0.81-3+deb11u1 |
| Debian:12 | pev | 0 | 0.81-9 |
| Ubuntu:16.04:LTS | pev | 0 | No fix |
| Ubuntu:18.04:LTS | pev | 0 | No fix |
| Ubuntu:20.04:LTS | pev | 0 | No fix |
| Ubuntu:22.04:LTS | pev | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | pev | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | pev | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | pev | 0 | No fix |
Related vulnerabilities
- CVE-2026-119146 ProFTPD before 1.3.9e and 1.3.10rc5 contains a buffer overflow vulnerability in the… CWE-120
- CVE-2026-57191 Asterisk is an open source private branch exchange and telephony toolkit. CWE-120
- CVE-2026-93857 A stack-based buffer overflow vulnerability in Fireware OS's SIP proxy allows a remote… CWE-120
- CVE-2026-79883 A buffer overflow vulnerability in the PAPI protocol of HPE Networking AOS-10 could allow… CWE-120
- CVE-2026-79863 Buffer overflow vulnerabilities in the affected interface of AOS-10 or AOS-8 could allow… CWE-120
- CVE-2026-79859 Buffer overflow vulnerabilities exist in the affected interface of AOS-8 that could lead… CWE-120
- CVE-2026-79860 Buffer overflow vulnerabilities exist in an underlying service of AOS-8 that could lead… CWE-120
- CVE-2026-79862 Buffer overflow vulnerabilities in the affected interface of AOS-10 or AOS-8 could allow… CWE-120