Vulnerability in Adaltas Printf
CVE-2021-23354
- CVSS v3
- 5.3 Medium
- Public exploits
- None known
- EPSS
- 0.022 · 82.6th percentile
- Published
- 2021-03-12
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, 82.6th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Adaltas Printf
- Printf — versions unspecified
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (engn33r/awesome-redos-security, yetingli/PoCs). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
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)