CVE-2021-31616: Insufficient length checks in the ShapeShift KeepKey hardware wallet firmware before 7.1.0 allow a stack buffe
CVE-2021-31616 is a high-severity flaw (CVSS 8.8) affecting keepkey firmware. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- High severity
- Public exploit reference
A fixed release or distro patch exists.
Risk facts
| CVSS score | 8.8 (High) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 2.5% (top 15%) |
| CISA exploited list | No |
| Weakness | CWE-787 |
| Published | 2021-05-06 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-31616?
keepkey firmware: upgrade to 7.1.0. Exact commands for each OS are on this page.
Is CVE-2021-31616 being exploited?
CVE-2021-31616 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2021-31616 affect?
CVE-2021-31616 affects keepkey firmware. Severity is high (CVSS 8.8). 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 protection
How urgent is CVE-2021-31616?
Priority 57/100. High severity; Public exploit reference
Related CVEs
- CVE-2023-27892 LOW 3.8 UPGRADE Insufficient length checks in the ShapeShift KeepKey hardware wallet firmware before 7.7.0 allow a global buff
- CVE-2022-30330 MEDIUM 6.6 UPGRADE In the KeepKey firmware before 7.3.2,Flaws in the supervisor interface can be exploited to bypass important se