cve/2021/CVE-2021-38185.md
2024-06-18 02:51:15 +02:00

20 lines
876 B
Markdown

### [CVE-2021-38185](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-38185)
![](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
GNU cpio through 2.13 allows attackers to execute arbitrary code via a crafted pattern file, because of a dstring.c ds_fgetstr integer overflow that triggers an out-of-bounds heap write. NOTE: it is unclear whether there are common cases where the pattern file, associated with the -E option, is untrusted data.
### POC
#### Reference
- https://github.com/fangqyi/cpiopwn
#### Github
- https://github.com/ARPSyndicate/cvemon
- https://github.com/Jauler/cve2021-3156-sudo-heap-overflow
- https://github.com/fokypoky/places-list