Advisory

GHSA-wxr3-2hgv-qm8f

Also known as: CVE-2024-21525

Summary

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

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-07-10 06:33 UTC
Modified
2024-07-10 21:44 UTC

Affected packages and fixes

node-twain

npm · All systems

Affected

  • introduced 0, last affected 0.0.16 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences