Regular Expression Denial of Service (ReDoS)
cve-program · CVE-2021-23354
PublishedThe 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.
Read the publisher's advisoryeuvd · EUVD-2021-0725
PublishedThe 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.
Read the publisher's advisorynvd · CVE-2021-23354
PublishedThe 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.
Read the publisher's advisoryosv · GHSA-xfhp-gmh8-r8v2
PublishedThe package printf before 0.6.1 are vulnerable to Regular Expression Denial of Service (ReDoS) via the regex string ```regex /\%(?:\(([\w_.]+)\)|([1-9]\d*)\$)?([0 +\-\]*)(\*|\d+)?(\.)?(\*|\d+)?[hlL]?([\%bscdeEfFgGioOuxX])/g ``` in `lib/printf.js`. The vulnerable regular expression has cubic worst-case time complexity.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2021-23354 · CVE overview and exploitation status
cve-program · CVE-2021-23354
- https://snyk.io/vuln/SNYK-JS-PRINTF-1072096
- https://github.com/adaltas/node-printf/pull/32
- https://github.com/adaltas/node-printf/issues/31
euvd · EUVD-2021-0725
- https://snyk.io/vuln/SNYK-JS-PRINTF-1072096
- https://github.com/adaltas/node-printf/pull/32
- https://github.com/adaltas/node-printf/issues/31
nvd · CVE-2021-23354
- https://github.com/adaltas/node-printf/issues/31
- https://github.com/adaltas/node-printf/pull/32
- https://snyk.io/vuln/SNYK-JS-PRINTF-1072096
osv · GHSA-xfhp-gmh8-r8v2
Related changes
Linked by CVE identifierNo related changes are available here.