CVE-2021-23354
Summary
| CVE | CVE-2021-23354 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2021-03-12 15:15:00 UTC |
| Updated | 2023-08-08 14:22:00 UTC |
| 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. |
Risk And Classification
Problem Types: CWE-1333
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| Regular Expression Denial of Service (ReDoS) in printf | Snyk | CONFIRM | snyk.io | Broken Link |
| ReDoS in printf · Issue #31 · adaltas/node-printf · GitHub | CONFIRM | github.com | Exploit, Issue Tracking, Third Party Advisory |
| Fix ReDoS by yetingli · Pull Request #32 · adaltas/node-printf · GitHub | CONFIRM | github.com | Patch, Third Party Advisory |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
LEGACY: Yeting Li
Legacy QID Mappings
- 982885 Nodejs (npm) Security Update for printf (GHSA-xfhp-gmh8-r8v2)