Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. node-twain
  4. ›
  5. CVE-2024-21525

CVE-2024-21525: node-twain vulnerable to Improper Check or Handling of Exceptional Conditions

July 10, 2024

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.

References

  • gist.github.com/dellalibera/55b87634a6c360e5be22a715f0566c99
  • github.com/Luomusha/node-twain
  • github.com/advisories/GHSA-wxr3-2hgv-qm8f
  • nvd.nist.gov/vuln/detail/CVE-2024-21525
  • security.snyk.io/vuln/SNYK-JS-NODETWAIN-6421153

Code Behaviors & Features

Detect and mitigate CVE-2024-21525 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.0.16

Solution

Unfortunately, there is no solution available yet.

Impact 8.3 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L

Learn more about CVSS

Weakness

  • CWE-703: Improper Check or Handling of Exceptional Conditions

Source file

npm/node-twain/CVE-2024-21525.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:38 +0000.