Vulnerability Details : CVE-2021-23354
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.
Vulnerability category: Denial of service
Products affected by CVE-2021-23354
- cpe:2.3:a:adaltas:printf:*:*:*:*:*:node.js:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-23354
0.20%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 57 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-23354
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.0
|
MEDIUM | AV:N/AC:L/Au:N/C:N/I:N/A:P |
10.0
|
2.9
|
NIST | |
7.5
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
3.9
|
3.6
|
NIST | |
5.3
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
3.9
|
1.4
|
Snyk |
References for CVE-2021-23354
-
https://github.com/adaltas/node-printf/issues/31
ReDoS in printf · Issue #31 · adaltas/node-printf · GitHubExploit;Issue Tracking;Third Party Advisory
-
https://snyk.io/vuln/SNYK-JS-PRINTF-1072096
Regular Expression Denial of Service (ReDoS) in printf | SnykBroken Link
-
https://github.com/adaltas/node-printf/pull/32
Fix ReDoS by yetingli · Pull Request #32 · adaltas/node-printf · GitHubPatch;Third Party Advisory
Jump to