Live threats

All CVEs / Adaltas

CVE-2021-23354Adaltas Printf

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
2.2%
probability of exploitation in 30 days · percentile 83
Auth required
No
Published
Mar 12, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1333
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Printf.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm printf < 0.6.1 0.6.1 npm install printf@0.6.1

Per OSV / GitHub Advisories (GHSA-xfhp-gmh8-r8v2). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
adaltasprintf< 0.6.1

Official sources

References

Links published by the sources. Open them with care.