LiveActive security incident?Get immediate response
CVE Record

CVE-2021-31616: Insufficient length checks in the ShapeShift KeepKey hardware wallet firmware before 7.1.0 allow a stack bu...

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.

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

A KeepKey hardware wallet running firmware before 7.1.0 could be compromised by malformed messages reaching its WebUSB interface. The reported impact is code execution on the device, which is serious for wallet integrity. Sources do not show confirmed active exploitation.

Executive priority

Treat this as high priority for any environment using KeepKey wallets. The affected asset protects cryptocurrency keys, and the reported impact is device-level code execution. Focus on rapid firmware verification and update completion rather than broad enterprise scanning.

Technical view

CVE-2021-31616 is an insufficient length check in ethereum_extractThorchainSwapData() in ethereum.c. Crafted messages can trigger a stack buffer overflow, reportedly bypass stack protections, and lead to code execution. The vulnerable interface is reachable remotely over WebUSB. Firmware before 7.1.0 is identified as affected.

Likely exposure

Organizations or users with ShapeShift KeepKey hardware wallets running firmware earlier than 7.1.0 are the relevant exposure group. Risk depends on whether the WebUSB interface can receive attacker-controlled messages.

Exploitation context

The public sources describe a crafted-message attack path and code execution impact. The CVE is not listed as KEV in the supplied bundle, and no cited source in the bundle confirms active exploitation in the wild.

Researcher notes

The core issue is a length-check failure before copying or parsing Thorchain swap data in Ethereum handling. The provided affected metadata is sparse, but the CVE description, release, commit, and advisory consistently point to KeepKey firmware before 7.1.0.

Mitigation direction

  • Update KeepKey firmware to version 7.1.0 or later using vendor guidance.
  • Review ShapeShift’s April 4 required update notice for user-facing instructions.
  • Limit untrusted browser interactions with connected KeepKey devices until updated.
  • Track vendor release notes for any additional recovery or hardening guidance.

Validation and detection

  • Inventory KeepKey devices and record current firmware versions.
  • Confirm no device remains on firmware earlier than 7.1.0.
  • Verify update completion through the official KeepKey or ShapeShift workflow.
  • Review wallet operational procedures involving WebUSB-connected browsers.
Prepared
Confidence
medium
Sources
6

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-31616 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
0Timeline events
0ADP providers
5Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/an/an/aListed
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.