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.
References
Link | Resource |
---|---|
https://github.com/adaltas/node-printf/issues/31 | Exploit Issue Tracking Third Party Advisory |
https://github.com/adaltas/node-printf/pull/32 | Patch Third Party Advisory |
https://snyk.io/vuln/SNYK-JS-PRINTF-1072096 | Broken Link |
Configurations
History
08 Aug 2023, 14:22
Type | Values Removed | Values Added |
---|---|---|
CWE | CWE-1333 |
18 Mar 2021, 16:57
Type | Values Removed | Values Added |
---|---|---|
CVSS |
v2 : v3 : |
v2 : 5.0
v3 : 7.5 |
CWE | NVD-CWE-Other | |
References | (CONFIRM) https://github.com/adaltas/node-printf/pull/32 - Patch, Third Party Advisory | |
References | (CONFIRM) https://snyk.io/vuln/SNYK-JS-PRINTF-1072096 - Broken Link | |
References | (CONFIRM) https://github.com/adaltas/node-printf/issues/31 - Exploit, Issue Tracking, Third Party Advisory | |
CPE | cpe:2.3:a:adaltas:printf:*:*:*:*:*:node.js:*:* |
12 Mar 2021, 16:15
Type | Values Removed | Values Added |
---|---|---|
New CVE |
Information
Published : 2021-03-12 15:15
Updated : 2023-12-10 13:41
NVD link : CVE-2021-23354
Mitre link : CVE-2021-23354
CVE.ORG link : CVE-2021-23354
JSON object : View
Products Affected
adaltas
- printf
CWE