CVE-2021-23354

Regular Expression Denial of Service (ReDoS)

Medium · published March 12, 2021

CVSS v3.1
5.3
EPSS
2%
Percentile
82.2
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.3 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CVSS v4.0
Not supplied
EPSS
0.02176 · 82.2th percentile
Published
2021-03-12T15:10Z
EPSS history
Timeline
  • 12 MAR 15:10Z
    Regular Expression Denial of Service (ReDoS)
    cvelistv5