{"id":"CVE-2024-21525","aliases":["EUVD-2024-2443","GHSA-wxr3-2hgv-qm8f"],"status":"published","title":"node-twain vulnerable to Improper Check or Handling of Exceptional Conditions","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 \u003e= 34 chars leads to a buffer overflow vulnerability.","severity":{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L/E:P","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.0055,"percentile":0.46334,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-703"],"published":"2024-07-10T05:00:03Z","modified":"2026-06-17T07:09:40Z","affected":[{"source":"ghsa","ecosystem":"npm","package":"node-twain","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.0.16"}]}]},{"source":"osv","ecosystem":"npm","package":"node-twain","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.0.16"}]}]}],"products":[{"vendor":"luomusha","product":"node-twain"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-NODETWAIN-6421153","tags":["x_transferred","web"]},{"url":"https://gist.github.com/dellalibera/55b87634a6c360e5be22a715f0566c99","tags":["x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21525","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-wxr3-2hgv-qm8f"},{"url":"https://github.com/Luomusha/node-twain","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2024-21525","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 \u003e= 34 chars leads to a buffer overflow vulnerability.","status":"published","published":"2024-07-10T05:00:03.124Z","modified":"2024-08-01T22:27:34.814Z","cvss":[{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L/E:P","level":"high","assessor":"cna"}],"cwes":["CWE-703"],"updated_at":"2026-11-02T14:34:04.681315Z"}],"euvd":[{"id":"EUVD-2024-2443","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 \u003e= 34 chars leads to a buffer overflow vulnerability.","status":"published","published":"2024-07-10T05:00:03Z","modified":"2024-08-01T22:27:34Z","cvss":[{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L/E:P","level":"high"}],"updated_at":"2026-11-03T03:50:29.983832Z"}],"ghsa":[{"id":"GHSA-wxr3-2hgv-qm8f","title":"node-twain vulnerable to Improper Check or Handling of Exceptional Conditions","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 \u003e= 34 chars leads to a buffer overflow vulnerability.","status":"published","published":"2024-07-10T06:33:52Z","modified":"2024-08-09T05:01:51Z","cvss":[{"version":"4.0","score":8.7,"vector":"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","level":"high"},{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L","level":"high"}],"cwes":["CWE-703"],"updated_at":"2026-11-02T14:37:59.336921Z"}],"nvd":[{"id":"CVE-2024-21525","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 \u003e= 34 chars leads to a buffer overflow vulnerability.","status":"published","published":"2024-07-10T05:15:11.53Z","modified":"2026-06-17T07:09:40.673Z","cvss":[{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L","level":"high","assessor":"secondary"}],"cwes":["CWE-703"],"updated_at":"2026-11-02T14:10:12.016585Z"}],"osv":[{"id":"GHSA-wxr3-2hgv-qm8f","title":"node-twain vulnerable to Improper Check or Handling of Exceptional Conditions","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 \u003e= 34 chars leads to a buffer overflow vulnerability.","status":"published","published":"2024-07-10T06:33:52Z","modified":"2024-07-10T21:44:52.351858Z","cvss":[{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L","level":"high"},{"version":"4.0","score":8.7,"vector":"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","level":"high"}],"cwes":["CWE-703"],"updated_at":"2026-11-02T15:46:59.131095Z"}]}}
