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 |
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
21 Nov 2024, 05:51
Type | Values Removed | Values Added |
---|---|---|
CVSS |
v2 : v3 : |
v2 : 5.0
v3 : 5.3 |
References | () https://github.com/adaltas/node-printf/issues/31 - Exploit, Issue Tracking, Third Party Advisory | |
References | () https://github.com/adaltas/node-printf/pull/32 - Patch, Third Party Advisory | |
References | () https://snyk.io/vuln/SNYK-JS-PRINTF-1072096 - Broken Link |
08 Aug 2023, 14:22
Type | Values Removed | Values Added |
---|---|---|
CWE | CWE-1333 |
Information
Published : 2021-03-12 15:15
Updated : 2024-11-21 05:51
NVD link : CVE-2021-23354
Mitre link : CVE-2021-23354
CVE.ORG link : CVE-2021-23354
JSON object : View
Products Affected
adaltas
- printf
CWE
CWE-1333
Inefficient Regular Expression Complexity