Intel

AIKIDO-2024-10466

viem is vulnerable to Insufficient Entropy

Insufficient Entropy Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.

50

Medium Risk

This Affects:

jsviem
0.2.0 - 2.21.48
Fixed in 2.21.49

TL;DR

Affected versions of this package are vulnerable due to insufficient entropy in the signature algorithm. The nonce (or k) used in transaction signatures must be unique for every message. Reusing the same nonce across different messages allows attackers to exploit the weakness and recover the private key, compromising the security of the system.

Who does this affect?

You are affected if you are using a version which is within vulnerability ranges

Background info

viem is vulnerable to Insufficient Entropy in versions 0.2.0 - 2.21.48.

How to fix this

Upgrade the viem library to the patch version.