Skip to main content
← All vulnerabilities
CVE-2021-23354GHSA-XFHP-GMH8-R8V2SNYK-JS-PRINTF-1072096

Regular Expression Denial of Service (ReDoS)

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.6.1
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • n/a printf

    fixed in 0.6.1

  • printfnpm

    fixed in 0.6.1

References 3

snyk.io

GitHub · adaltas/node-printf