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
History

No history.

cve-icon MITRE Information

Status: PUBLISHED

Assigner: snyk

Published: 2021-03-12T00:00:00

Updated: 2021-03-12T15:10:15

Reserved: 2021-01-08T00:00:00


Link: CVE-2021-23354

JSON object: View

cve-icon NVD Information

Status : Analyzed

Published: 2021-03-12T15:15:14.207

Modified: 2023-08-08T14:22:24.967


Link: CVE-2021-23354

JSON object: View

cve-icon Redhat Information

No data.

CWE