Vulnerability in Adaltas Printf
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.
Vulnerability class: ReDoS (Regular Expression Denial of Service)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
EPSS exploit prediction
EPSS: 0.022 (81.6th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 82nd percentile — 81.6% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.022 · newest: 0.022 · change: 0.000
Affected products
- Adaltas Printf
- Printf — versions unspecified
Weakness classification (CWE)
Public proof-of-concept exploits
References
- snyk.io/vuln/SNYK-JS-PRINTF-1072096 (Broken Link)
- github.com/adaltas/node-printf/pull/32 (Patch, Third Party Advisory)
- github.com/adaltas/node-printf/issues/31 (Exploit, Third Party Advisory, Issue Tracking)
Frequently asked questions
- What is CVE-2021-23354?
- CVE-2021-23354 is a medium-severity vulnerability in Adaltas Printf, classified under Inefficient Regular Expression Complexity. CVSS score: 5.3/10. Published 2021-03-12.
- How severe is CVE-2021-23354?
- Medium severity. CVSS v3 base score is 5.3 out of 10.
- Is CVE-2021-23354 known to be exploited?
- 2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.