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

19 lines
866 B
Markdown

### [CVE-2021-23354](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23354)
![](https://img.shields.io/static/v1?label=Product&message=printf&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=%3C%200.6.1%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=Regular%20Expression%20Denial%20of%20Service%20(ReDoS)&color=brighgreen)
### Description
The package printf before 0.6.1 are vulnerable to Regular Expression Denial of Service (ReDoS) via the regex string /\%(?:\(([\w_.]+)\)|([1-9]\d*)\$)?([0 +\-\]*)(\*|\d+)?(\.)?(\*|\d+)?[hlL]?([\%bscdeEfFgGioOuxX])/g in lib/printf.js. The vulnerable regular expression has cubic worst-case time complexity.
### POC
#### Reference
No PoCs from references.
#### Github
- https://github.com/engn33r/awesome-redos-security
- https://github.com/yetingli/PoCs