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.
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

Configuration 1 (hide)

cpe:2.3:a:adaltas:printf:*:*:*:*:*:node.js:*:*

History

08 Aug 2023, 14:22

Type Values Removed Values Added
CWE NVD-CWE-Other CWE-1333

Information

Published : 2021-03-12 15:15

Updated : 2024-02-04 21:23


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