CVE-2024-21525
HIGH 8.3CVSS 3.1node-twain vulnerable to Improper Check or Handling of Exceptional Conditions
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.
- Published
- 10 Jul 2024
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Deferred
- Weakness
- CWE-703
- Also known as
- GHSA-wxr3-2hgv-qm8f
- Sources
- NVDJSONOSV GHSA-wxr3-2hgv-qm8fJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N | |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 8.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 8.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | node-twain | <= 0.0.16 |
References
- https://gist.github.com/dellalibera/55b87634a6c360e5be22a715f0566c99 · WEB
- https://security.snyk.io/vuln/SNYK-JS-NODETWAIN-6421153 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-21525 · ADVISORY
- https://github.com/Luomusha/node-twain · PACKAGE
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 10 Jul 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 Jul 2024)