CVE-2024-21525
JSON

8.3high

node-twain vulnerable to Improper Check or Handling of Exceptional Conditions

Severity
8.3high CVSS:3.1 by snyk
Exploit likelihood
0.55% (higher than 47% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-wxr3-2hgv-qm8f

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

Product or packageVersionsReported by
node-twainbefore *CVE List
luomusha node-twainbefore *CVE List
node-twain (npm)up to 0.0.16GitHub Advisory Database

All scores

snyk8.3high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L/E:P
GitHub8.3high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N

Classification

CWE-703

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

Todas las versiones del paquete node-twain son vulnerables a una verificación inadecuada o al manejo de condiciones excepcionales debido a la longitud de los datos de origen que no se verifican. La creación de un nuevo twain.TwainSDK con una propiedad productName o productFamily, manufacturer, version.info de longitud >= 34 caracteres conduce a una vulnerabilidad de desbordamiento del búfer.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-21525 changed 2024-08-01CVE Terms of Use
GitHub Advisory DatabaseGHSA-wxr3-2hgv-qm8f changed 2024-07-10CC-BY-4.0
NVDCVE-2024-21525 changed 2026-06-17Public domain