{"id":"CVE-2021-31616","aliases":["EUVD-2021-18505","GHSA-jjq4-78fg-7j7h"],"status":"published","title":"Insufficient length checks in the ShapeShift KeepKey hardware wallet firmware before 7.1.0 allow...","description":"Insufficient length checks in the ShapeShift KeepKey hardware wallet firmware before 7.1.0 allow a stack buffer overflow via crafted messages. The overflow in ethereum_extractThorchainSwapData() in ethereum.c can circumvent stack protections and lead to code execution. The vulnerable interface is reachable remotely over WebUSB.","severity":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-12","score":0.02497,"percentile":0.84915,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-120","CWE-787"],"published":"2021-05-06T11:01:42Z","modified":"2026-06-17T03:52:05Z","products":[{"vendor":"shapeshift","product":"keepkey_firmware"}],"references":[{"url":"https://github.com/keepkey/keepkey-firmware/releases/tag/v7.1.0","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory"]},{"url":"https://github.com/keepkey/keepkey-firmware/commit/e49d45594002d4d3fbc1f03488e6dfc0a0a65836","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory"]},{"url":"https://blog.inhq.net/posts/keepkey-CVE-2021-31616/","tags":["x_refsource_MISC","x_transferred","Exploit","Patch","Third Party Advisory"]},{"url":"https://shapeshift.com/library/keepkey-important-update-issued-april-4-required","tags":["x_refsource_MISC","x_transferred","Vendor Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31616"},{"url":"https://github.com/advisories/GHSA-jjq4-78fg-7j7h"}],"sources":{"cve":[{"id":"CVE-2021-31616","description":"Insufficient length checks in the ShapeShift KeepKey hardware wallet firmware before 7.1.0 allow a stack buffer overflow via crafted messages. The overflow in ethereum_extractThorchainSwapData() in ethereum.c can circumvent stack protections and lead to code execution. The vulnerable interface is reachable remotely over WebUSB.","status":"published","published":"2021-05-06T11:01:42Z","modified":"2024-08-03T23:03:33.671Z","updated_at":"2026-11-02T14:33:05.665371Z"}],"euvd":[{"id":"EUVD-2021-18505","description":"Insufficient length checks in the ShapeShift KeepKey hardware wallet firmware before 7.1.0 allow a stack buffer overflow via crafted messages. The overflow in ethereum_extractThorchainSwapData() in ethereum.c can circumvent stack protections and lead to code execution. The vulnerable interface is reachable remotely over WebUSB.","status":"published","published":"2021-05-06T11:01:42Z","modified":"2024-08-03T23:03:33Z","updated_at":"2026-11-03T03:24:38.423371Z"}],"ghsa":[{"id":"GHSA-jjq4-78fg-7j7h","title":"Insufficient length checks in the ShapeShift KeepKey hardware wallet firmware before 7.1.0 allow...","description":"Insufficient length checks in the ShapeShift KeepKey hardware wallet firmware before 7.1.0 allow a stack buffer overflow via crafted messages. The overflow in ethereum_extractThorchainSwapData() in ethereum.c can circumvent stack protections and lead to code execution. The vulnerable interface is reachable remotely over WebUSB.","status":"published","published":"2022-05-24T19:01:30Z","modified":"2023-01-29T05:06:37Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-120","CWE-787"],"updated_at":"2026-11-02T14:46:03.953317Z"}],"nvd":[{"id":"CVE-2021-31616","description":"Insufficient length checks in the ShapeShift KeepKey hardware wallet firmware before 7.1.0 allow a stack buffer overflow via crafted messages. The overflow in ethereum_extractThorchainSwapData() in ethereum.c can circumvent stack protections and lead to code execution. The vulnerable interface is reachable remotely over WebUSB.","status":"published","published":"2021-05-06T13:15:12.693Z","modified":"2026-06-17T03:52:05.207Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:06:52.81233Z"}]}}
