PT-2024-18939 · Unknown · Node-Twain

Alessio Della Libera

·

Published

2024-07-10

·

Updated

2024-07-11

·

CVE-2024-21525

CVSS v4.0

8.7

High

VectorAV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions node-twain versions all
Description The issue arises from 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.
Recommendations For all versions, consider restricting the length of productName, productFamily, manufacturer, and version.info properties to less than 34 characters to minimize the risk of exploitation until a patch is available. As a temporary workaround, consider disabling the creation of new twain.TwainSDK instances with long property values. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Weakness Enumeration

Related Identifiers

CVE-2024-21525
GHSA-WXR3-2HGV-QM8F

Affected Products

Node-Twain