{"id":"CVE-2021-31616","sourceIdentifier":"cve@mitre.org","published":"2021-05-06T13:15:12.693","lastModified":"2026-06-17T03:52:05.207","vulnStatus":"Modified","cveTags":[],"descriptions":[{"lang":"en","value":"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."},{"lang":"es","value":"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"}],"affected":[{"source":"cve@mitre.org","affectedData":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":2.8,"impactScore":5.9}],"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:P","baseScore":6.8,"accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"},"baseSeverity":"MEDIUM","exploitabilityScore":8.6,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}]},"weaknesses":[{"source":"nvd@nist.gov","type":"Primary","description":[{"lang":"en","value":"CWE-787"}]}],"configurations":[{"operator":"AND","nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:shapeshift:keepkey_firmware:*:*:*:*:*:*:*:*","versionStartIncluding":"7.0.3","versionEndExcluding":"7.1.0","matchCriteriaId":"BD9316A0-067E-435A-8186-4F8D828D67F4"}]},{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":false,"criteria":"cpe:2.3:h:shapeshift:keepkey:-:*:*:*:*:*:*:*","matchCriteriaId":"663CE48F-F657-40AA-8954-EADA31C9DFB1"}]}]}],"references":[{"url":"https://blog.inhq.net/posts/keepkey-CVE-2021-31616/","source":"cve@mitre.org","tags":["Exploit","Patch","Third Party Advisory"]},{"url":"https://github.com/keepkey/keepkey-firmware/commit/e49d45594002d4d3fbc1f03488e6dfc0a0a65836","source":"cve@mitre.org","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/keepkey/keepkey-firmware/releases/tag/v7.1.0","source":"cve@mitre.org","tags":["Release Notes","Third Party Advisory"]},{"url":"https://shapeshift.com/library/keepkey-important-update-issued-april-4-required","source":"cve@mitre.org","tags":["Vendor Advisory"]},{"url":"https://blog.inhq.net/posts/keepkey-CVE-2021-31616/","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit","Patch","Third Party Advisory"]},{"url":"https://github.com/keepkey/keepkey-firmware/commit/e49d45594002d4d3fbc1f03488e6dfc0a0a65836","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/keepkey/keepkey-firmware/releases/tag/v7.1.0","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Release Notes","Third Party Advisory"]},{"url":"https://shapeshift.com/library/keepkey-important-update-issued-april-4-required","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Vendor Advisory"]}]}