{"id":"CVE-2021-31616","aliases":["CVE-2021-31616"],"related":[],"kind":"vulnerability","state":"published","title":"Insufficient length checks in the ShapeShift KeepKey hardware wallet firmware before 7.1.0 allow a stack buffer overflow via crafted messag…","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Unas comprobaciones insuficiente de longitud en el firmware ShapeShift KeepKey versiones anteriores a 7.1.0, permiten un desbordamiento del búfer de la pila por medio de mensajes diseñados.&#xa0;El desbordamiento en la función ethereum_extractThorchainSwapData() en el archivo ethereum.c puede omitir las protecciones de la pila y conllevar a una ejecución de código.&#xa0;La interfaz vulnerable es accesible de forma remota por medio de WebUSB","source":"nvd"}],"published":"2021-05-06T11:01:42.000Z","modified":"2026-06-17T03:52:05.207Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"status":"affected","introduced":"7.0.3","fixed":"7.1.0"}],"vendor":"shapeshift","product":"keepkey_firmware","cpe":"cpe:2.3:o:shapeshift:keepkey_firmware:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/keepkey/keepkey-firmware/releases/tag/v7.1.0","tags":["release-notes","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/keepkey/keepkey-firmware/commit/e49d45594002d4d3fbc1f03488e6dfc0a0a65836","tags":["patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://blog.inhq.net/posts/keepkey-CVE-2021-31616/","tags":["exploit","patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://shapeshift.com/library/keepkey-important-update-issued-april-4-required","tags":["vendor-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-31616","url":"https://www.cve.org/CVERecord?id=CVE-2021-31616","licence":"CVE Terms of Use","modified":"2024-08-03T23:03:33.671Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-31616","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31616","licence":"Public domain","modified":"2026-06-17T03:52:05.207Z"}],"updatedAt":"2026-11-25T22:58:01.177Z","epss":{"score":0.02497,"percentile":0.85128,"date":"2026-12-01T12:00:22.000Z"}}