Vulnerability 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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Adaltas | Printf | < 0.6.1 |
Related Weaknesses (CWE)
References
- https://github.com/adaltas/node-printf/issues/31ExploitIssue TrackingThird Party Advisory
- https://github.com/adaltas/node-printf/pull/32PatchThird Party Advisory
- https://snyk.io/vuln/SNYK-JS-PRINTF-1072096Broken Link
- https://github.com/adaltas/node-printf/issues/31ExploitIssue TrackingThird Party Advisory
- https://github.com/adaltas/node-printf/pull/32PatchThird Party Advisory
- https://snyk.io/vuln/SNYK-JS-PRINTF-1072096Broken Link
FAQ
What is CVE-2021-23354?
CVE-2021-23354 is a vulnerability with a CVSS score of 5.3 (MEDIUM). 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]?([\%bscdeE...
How severe is CVE-2021-23354?
CVE-2021-23354 has been rated MEDIUM with a CVSS base score of 5.3/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2021-23354?
Check the references section above for vendor advisories and patch information. Affected products include: Adaltas Printf.