CVE-2021-23354

Source
https://cve.org/CVERecord?id=CVE-2021-23354
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-23354.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-23354
Aliases
Related
  • SNYK-JS-PRINTF-1072096
Published
2021-03-12T15:15:14.207Z
Modified
2026-04-10T04:30:23.841435Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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

Affected packages

Git / github.com/adaltas/node-printf

Affected ranges

Type
GIT
Repo
https://github.com/adaltas/node-printf
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "fixed": "0.6.1"
        }
    ]
}

Affected versions

0.*
0.2.1
v0.*
v0.0.1
v0.0.2
v0.0.3
v0.0.4
v0.0.6
v0.0.7
v0.1.0
v0.1.1
v0.1.2
v0.1.3
v0.2.0
v0.2.2
v0.2.3
v0.2.4
v0.2.5
v0.3.0
v0.4.0
v0.5.1
v0.5.2
v0.5.3
v0.6.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-23354.json"