CVE-2021-23354
Last modified
CVE-2021-23354 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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.. EPSS estimates a 2.18% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Adaltas | Printf | < 0.6.1 |
References
- https://github.com/adaltas/node-printf/issues/31Exploit, Issue Tracking, Third Party Advisory
- https://github.com/adaltas/node-printf/pull/32Patch, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-PRINTF-1072096Broken Link
- https://github.com/adaltas/node-printf/issues/31Exploit, Issue Tracking, Third Party Advisory
- https://github.com/adaltas/node-printf/pull/32Patch, Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-PRINTF-1072096Broken Link
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-23354?
How severe is CVE-2021-23354?
How do I fix CVE-2021-23354?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-23347The package github.com/argoproj/argo-cd/cmd before 1.7.13, f…4.8
- CVE-2021-23348This affects the package portprocesses before 1.0.5. If (att…8.8
- CVE-2021-2335Vulnerability in the Oracle Database - Enterprise Edition Da…3.5
- CVE-2021-23351The package github.com/pires/go-proxyproto before 0.5.0 are …4.9
- CVE-2021-23352This affects the package madge before 4.0.1. It is possible …9.8
- CVE-2021-23353This affects the package jspdf before 2.3.1. ReDoS is possib…7.5
- CVE-2021-23355This affects all versions of package ps-kill. If (attacker-c…9.8
- CVE-2021-23356This affects all versions of package kill-process-by-name. I…9.8
- CVE-2021-23357All versions of package github.com/tyktechnologies/tyk/gatew…5.3
- CVE-2021-23358The package underscore from 1.13.0-0 and before 1.13.0-2, fr…7.2
- CVE-2021-23359This affects all versions of package port-killer. If (attack…8.8
- CVE-2021-2336Vulnerability in the Oracle Database - Enterprise Edition Da…3.5
Are you affected by CVE-2021-23354?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
