{"id":"GHSA-wxr3-2hgv-qm8f","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 \u003e= 34 chars leads to a buffer overflow vulnerability.","aliases":["CVE-2024-21525"],"modified":"2024-07-10T21:44:52.351858Z","published":"2024-07-10T06:33:52Z","database_specific":{"nvd_published_at":"2024-07-10T05:15:11Z","cwe_ids":["CWE-703"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2024-07-10T21:29:30Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21525"},{"type":"WEB","url":"https://gist.github.com/dellalibera/55b87634a6c360e5be22a715f0566c99"},{"type":"PACKAGE","url":"https://github.com/Luomusha/node-twain"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JS-NODETWAIN-6421153"}],"affected":[{"package":{"name":"node-twain","ecosystem":"npm","purl":"pkg:npm/node-twain"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.0.16"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/07/GHSA-wxr3-2hgv-qm8f/GHSA-wxr3-2hgv-qm8f.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L"},{"type":"CVSS_V4","score":"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"}]}