Vulnerability · Published Jul 10, 2024 · Assigned by snyk

CVE-2024-21525

High 8.3

In plain English

A high-severity security flaw in node-twain. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 46% of all known vulnerabilities).

Severity (CVSS 3.1)8.3High
Exploit odds (30 days)0.5%top 53.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmnode-twainno fix listedGHSA-wxr3-2hgv-qm8f

Affected products (as reported)

VendorProductVersions
n/a node-twain 0 – before *

Weakness: CWE-703 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L/E:P

References