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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | node-twain | no fix listed | GHSA-wxr3-2hgv-qm8f |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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