What’s Vulnerable › Vulnerabilities
CVE-2021-31616
- Severity: high (CVSS 8.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.5% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2021-05-06 · updated 2026-06-17
- Weakness: CWE-787
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.
Affected products
- Shapeshift Keepkey Firmware: from 7.0.3 before 7.1.0 — fixed in 7.1.0
How to fix
Upgrade to a fixed version: Shapeshift Keepkey Firmware 7.1.0. Check the vendor advisory for mitigations.
References
- https://blog.inhq.net/posts/keepkey-CVE-2021-31616/
- https://github.com/keepkey/keepkey-firmware/commit/e49d45594002d4d3fbc1f03488e6dfc0a0a65836
- https://github.com/keepkey/keepkey-firmware/releases/tag/v7.1.0
- https://shapeshift.com/library/keepkey-important-update-issued-april-4-required
- https://blog.inhq.net/posts/keepkey-CVE-2021-31616/
- https://github.com/keepkey/keepkey-firmware/commit/e49d45594002d4d3fbc1f03488e6dfc0a0a65836
- https://github.com/keepkey/keepkey-firmware/releases/tag/v7.1.0
- https://shapeshift.com/library/keepkey-important-update-issued-april-4-required
Get alerted when CVE-2021-31616 or the next vulnerability affects your stack