Live threats

All CVEs / luomusha

CVE-2024-21525luomusha node-twain

High 8.3 No auth needed

Priority
65
CVSS 3.1
8.3
EPSS
0.8%
probability of exploitation in 30 days · percentile 53
Auth required
No
Published
Jul 10, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-703
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L

What happens

All versions of the package node-twain are vulnerable to Improper Check or Handling of Exceptional Conditions due to the length of the source data not being checked. Creating a new twain.TwainSDK with a productName or productFamily, manufacturer, version.info property of length >= 34 chars leads to a buffer overflow vulnerability.

Original NVD text.

What to do

  1. Apply the vendor's security update for node-twain.
  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 node-twain ≤ 0.0.16 no fixed version —

Per OSV / GitHub Advisories (GHSA-wxr3-2hgv-qm8f). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.