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.
Advisories
Source ID Title
EUVD EUVD EUVD-2021-0725 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.
Github GHSA Github GHSA GHSA-xfhp-gmh8-r8v2 printf vulnerable to Regular Expression Denial of Service (ReDoS)
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

No history.

Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: snyk

Published:

Updated: 2024-09-17T03:32:43.212Z

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

Link: CVE-2021-23354

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Modified

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

Modified: 2024-11-21T05:51:33.733

Link: CVE-2021-23354

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses