CVE-2021-23354
5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Summary
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.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| n/a | printf | unspecified < 0.6.1 | affected |
Weaknesses
- Regular Expression Denial of Service (ReDoS)
ADP Enrichment
CVE Program Container
Additional References
- https://snyk.io/vuln/SNYK-JS-PRINTF-1072096
- https://github.com/adaltas/node-printf/pull/32
- https://github.com/adaltas/node-printf/issues/31
References
- https://snyk.io/vuln/SNYK-JS-PRINTF-1072096
- https://github.com/adaltas/node-printf/pull/32
- https://github.com/adaltas/node-printf/issues/31
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.