{"id":"CVE-2024-21525","aliases":["CVE-2024-21525","GHSA-wxr3-2hgv-qm8f"],"related":[],"kind":"vulnerability","state":"published","title":"node-twain vulnerable to Improper Check or Handling of Exceptional Conditions","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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 &gt;= 34 caracteres conduce a una vulnerabilidad de desbordamiento del búfer.","source":"nvd"}],"published":"2024-07-10T05:00:03.124Z","modified":"2026-06-17T07:09:40.673Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L/E:P","score":8.3,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L/E:P","score":8.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L","score":8.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"HIGH"}],"cwes":["CWE-703"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"*","status":"affected"}],"product":"node-twain","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"*","status":"affected"}],"vendor":"luomusha","product":"node-twain","cpe":"cpe:2.3:a:luomusha:node-twain:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.0.16"}],"ecosystem":"npm","package":"node-twain","purl":"pkg:npm/node-twain","source":"ghsa"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-NODETWAIN-6421153","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://gist.github.com/dellalibera/55b87634a6c360e5be22a715f0566c99","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21525","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/Luomusha/node-twain","tags":["package"],"sources":["ghsa"]}],"credits":["Alessio Della Libera"],"assigner":"snyk","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2024-07-10T15:30:25.500Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-21525","url":"https://www.cve.org/CVERecord?id=CVE-2024-21525","licence":"CVE Terms of Use","modified":"2024-08-01T22:27:34.814Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wxr3-2hgv-qm8f","url":"https://github.com/advisories/GHSA-wxr3-2hgv-qm8f","licence":"CC-BY-4.0","modified":"2024-07-10T21:44:52.351Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-21525","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21525","licence":"Public domain","modified":"2026-06-17T07:09:40.673Z"}],"updatedAt":"2026-11-25T22:58:42.727Z","epss":{"score":0.0055,"percentile":0.47398,"date":"2026-12-01T12:00:22.000Z"}}