Files
CVEs-PoC/2021/CVE-2021-45423.md
T
2024-05-25 21:48:12 +02:00

18 lines
903 B
Markdown

### [CVE-2021-45423](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-45423)
![](https://img.shields.io/static/v1?label=Product&message=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=n%2Fa&color=blue)
![](https://img.shields.io/static/v1?label=Vulnerability&message=n%2Fa&color=brighgreen)
### 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.
### POC
#### Reference
- https://github.com/merces/libpe/issues/35
#### Github
No PoCs found on GitHub currently.