PT-2021-15456 · Printf · Printf

Yeting Li

·

Published

2021-03-12

·

Updated

2023-08-08

·

CVE-2021-23354

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions printf versions prior to 0.6.1
Description The issue concerns a Regular Expression Denial of Service (ReDoS) vulnerability via a regex string in lib/printf.js. The vulnerable regular expression has cubic worst-case time complexity, which can be exploited.
Recommendations For versions prior to 0.6.1, update to version 0.6.1 or later to resolve the issue. As a temporary workaround, consider restricting the use of the vulnerable regex string in lib/printf.js until a patch is available.

Exploit

Fix

DoS

Resource Exhaustion

Weakness Enumeration

Related Identifiers

CVE-2021-23354
GHSA-XFHP-GMH8-R8V2
SNYK-JS-PRINTF-1072096

Affected Products

Printf