CyberRota Analysis
AI-GeneratedVersions of the crypto-js library prior to 4.0.0 are vulnerable due to the use of a non-cryptographically secure pseudorandom number generator for generating randomness in the CryptoJS.lib.WordArray.random() function. This vulnerability allows attackers to enumerate the limited output space, potentially recovering private keys from wallet applications that rely on this function for BIP39 recovery phrases, thereby compromising associated funds. Organizations utilizing affected versions of crypto-js, particularly those in the cryptocurrency sector, should prioritize upgrading to version 4.0.0 to mitigate this critical risk.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
crypto-js is a JavaScript library of crypto standards. Versions of crypto-js prior to 4.0.0 generate randomness in CryptoJS.lib.WordArray.random() using a custom variation of the Multiply-With-Carry pseudorandom number generator, seeded from Math.random(), instead of a cryptographically secure source. This generator was introduced in version 3.1.2-4 and remained present in nearly every 3.x release. Nominal requests for 128 or 256 bits of entropy through this function produce effective search spaces of approximately 2 to the 39th and 2 to the 47th possibilities, small enough to enumerate on commodity hardware. Downstream wallet applications that used CryptoJS.lib.WordArray.random() as the entropy source for BIP39 recovery phrases are affected, and an attacker who enumerates the reduced output space can recover the resulting private keys and control the associated funds. This issue is fixed in version 4.0.0.