Improper Check or Handling of Exceptional Conditions Affecting node-twain package, versions *


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-NODETWAIN-6421153
  • published9 Jul 2024
  • disclosed20 Feb 2024
  • creditAlessio Della Libera

Introduced: 20 Feb 2024

CVE-2024-21525  (opens in a new tab)
CWE-703  (opens in a new tab)
First added by Snyk

How to fix?

There is no fixed version for node-twain.

Overview

node-twain is an A TWAIN library for nodejs.

Affected versions of this package 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.

References

CVSS Scores

version 3.1