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
                    | Link | Resource | 
|---|---|
| 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 | 
| https://snyk.io/vuln/SNYK-JS-PRINTF-1072096 | Broken Link | 
Configurations
                    History
                    No history.
Information
                Published : 2021-03-12 15:15
Updated : 2023-08-08 14:22
NVD link : CVE-2021-23354
Mitre link : CVE-2021-23354
CVE.ORG link : CVE-2021-23354
JSON object : View
Products Affected
                adaltas
- printf
 
CWE
                
                    
                        
                        CWE-1333
                        
            Inefficient Regular Expression Complexity
