CVE-2021-31616
CVE-2021-31616 is a high-severity vulnerability in Shapeshift Keepkey Firmware with a CVSS 3.x base score of 8.8. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-787.
Key facts
- Severity: High (CVSS 3.x base score 8.8)
- CVSS v2: 6.8
- EPSS exploit prediction: 2% (83rd percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-787
- Affected product: Shapeshift Keepkey Firmware
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2021-31616?
- 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.
- How severe is CVE-2021-31616?
- CVE-2021-31616 has a CVSS 3.x base score of 8.8, rated high severity. It is exploitable over network with low attack complexity, requires no privileges and user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2021-31616 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 2% (83rd percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2021-31616?
- CVE-2021-31616 affects Shapeshift Keepkey Firmware. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2021-31616?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- When was CVE-2021-31616 published?
- CVE-2021-31616 was published on 2021-05-06 and last updated on 2026-06-17.
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
Affected products (1)
- cpe:2.3:o:shapeshift:keepkey_firmware:*:*:*:*:*:*:*:*
More vulnerabilities in Shapeshift Keepkey Firmware
- CVE-2019-18672 — High (CVSS 7.5): Insufficient checks in the finite state machine of the ShapeShift KeepKey hardware wallet before firmware 6.2.2 allow a…
- CVE-2018-6875 — High (CVSS 7.5): Format String vulnerability in KeepKey version 4.0.0 allows attackers to trigger information display (of information…
- CVE-2023-27892 — Low (CVSS 3.8): Insufficient length checks in the ShapeShift KeepKey hardware wallet firmware before 7.7.0 allow a global buffer…
- CVE-2019-14355 — Low (CVSS 2.4): On ShapeShift KeepKey devices, a side channel for the row-based OLED display was found. The power consumption of each…
All CVEs affecting Shapeshift Keepkey Firmware →
Other CWE-787 (Out-of-bounds Write) vulnerabilities
- CVE-2026-42369 — Critical (CVSS 10.0): GV-VMS V20 is a Video Monitoring Software used to gather the feeds of many surveillance cameras and manage other…
- CVE-2026-4746 — Critical (CVSS 10.0): Out-of-bounds Write vulnerability in timeplus-io proton (base/poco/Foundation/src modules). This vulnerability is…
- CVE-2025-43300 — Critical (CVSS 10.0): An out-of-bounds write issue was addressed with improved bounds checking. This issue is fixed in iOS 15.8.5 and iPadOS…
- CVE-2025-24201 — Critical (CVSS 10.0): An out-of-bounds write issue was addressed with improved checks to prevent unauthorized actions. This issue is fixed in…
- CVE-2024-42479 — Critical (CVSS 10.0): llama.cpp provides LLM inference in C/C++. The unsafe `data` pointer member in the `rpc_tensor` structure can cause…
- CVE-2024-39791 — Critical (CVSS 10.0): Stack-based buffer overflow vulnerabilities affecting Vonets industrial wifi bridge relays and wifi bridge…