CVE-2021-23354

CVSS V2 Medium 5 CVSS V3 High 7.5
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.
Overview
  • CVE ID
  • CVE-2021-23354
  • Assigner
  • report@snyk.io
  • Vulnerability Status
  • Analyzed
  • Published Version
  • 2021-03-12T15:15:14
  • Last Modified Date
  • 2021-03-18T16:57:55
CPE Configuration (Product)
CPE Vulnerable Operator Version Start Version End
cpe:2.3:a:adaltas:printf:*:*:*:*:*:node.js:*:* 1 OR 0.6.1
CVSS Version 2
  • Version
  • 2.0
  • Vector String
  • AV:N/AC:L/Au:N/C:N/I:N/A:P
  • Access Vector
  • NETWORK
  • Access Compatibility
  • LOW
  • Authentication
  • NONE
  • Confidentiality Impact
  • NONE
  • Integrity Impact
  • NONE
  • Availability Impact
  • PARTIAL
  • Base Score
  • 5
  • Severity
  • MEDIUM
  • Exploitability Score
  • 10
  • Impact Score
  • 2.9
CVSS Version 3
  • Version
  • 3.1
  • Vector String
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Attack Vector
  • NETWORK
  • Attack Compatibility
  • LOW
  • Privileges Required
  • NONE
  • User Interaction
  • NONE
  • Scope
  • UNCHANGED
  • Confidentiality Impact
  • NONE
  • Availability Impact
  • HIGH
  • Base Score
  • 7.5
  • Base Severity
  • HIGH
  • Exploitability Score
  • 3.9
  • Impact Score
  • 3.6
References
Reference URL Reference Tags
https://snyk.io/vuln/SNYK-JS-PRINTF-1072096 Broken Link
https://github.com/adaltas/node-printf/issues/31 Exploit Issue Tracking Third Party Advisory
https://github.com/adaltas/node-printf/pull/32 Patch Third Party Advisory
History
Created Old Value New Value Data Type Notes
2022-05-10 07:19:27 Added to TrackCVE
2022-12-05 23:41:09 2021-03-12T15:15Z 2021-03-12T15:15:14 CVE Published Date updated
2022-12-05 23:41:09 2021-03-18T16:57:55 CVE Modified Date updated
2022-12-05 23:41:09 Analyzed Vulnerability Status updated