CVE-2021-23354
Last modified
CVE-2021-23354 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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.. EPSS estimates a 2.18% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Adaltas | Printf | < 0.6.1 |
References
- https://github.com/adaltas/node-printf/issues/31Exploit, Issue Tracking, Third Party Advisory
- https://github.com/adaltas/node-printf/pull/32Patch, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-PRINTF-1072096Broken Link
- https://github.com/adaltas/node-printf/issues/31Exploit, Issue Tracking, Third Party Advisory
- https://github.com/adaltas/node-printf/pull/32Patch, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-PRINTF-1072096Broken Link
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-23354?
How severe is CVE-2021-23354?
How do I fix CVE-2021-23354?
Are you affected by CVE-2021-23354?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
