CVE-2021-23354

MEDIUM

Adaltas Printf < 0.6.1 - Denial of Service

Title source: rule
STIX 2.1

Description

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.

References (3)

Core 3
Core References
Broken Link x_refsource_misc
https://snyk.io/vuln/SNYK-JS-PRINTF-1072096
Patch, Third Party Advisory x_refsource_misc
https://github.com/adaltas/node-printf/pull/32
Exploit, Issue Tracking, Third Party Advisory x_refsource_misc
https://github.com/adaltas/node-printf/issues/31

Scores

CVSS v3 5.3
EPSS 0.0040
EPSS Percentile 60.7%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Details

CWE
CWE-1333
Status published
Products (2)
adaltas/printf < 0.6.1
npm/printf 0 - 0.6.1npm
Published Mar 12, 2021
Tracked Since Feb 18, 2026