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 package | Versions | Reported by |
|---|---|---|
| node-twain | before * | CVE List |
| luomusha node-twain | before * | CVE List |
| node-twain (npm) | up to 0.0.16 | GitHub Advisory Database |
All scores
| snyk | 8.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L/E:P |
| GitHub | 8.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L |
| GitHub | high 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 |
Classification
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-21525 changed 2024-08-01 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-wxr3-2hgv-qm8f changed 2024-07-10 | CC-BY-4.0 |
| NVD | CVE-2024-21525 changed 2026-06-17 | Public domain |