What’s Vulnerable › Vulnerabilities
CVE-2023-31290
- Severity: medium (CVSS 5.9 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.0% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2023-04-27 · updated 2026-06-17
- Weakness: CWE-338
Description
Trust Wallet Core before 3.1.1, as used in the Trust Wallet browser extension before 0.0.183, allows theft of funds because the entropy is 32 bits, as exploited in the wild in December 2022 and March 2023. This occurs because the mt19937 Mersenne Twister takes a single 32-bit value as an input seed, resulting in only four billion possible mnemonics. The affected versions of the browser extension are 0.0.172 through 0.0.182. To steal funds efficiently, an attacker can identify all Ethereum addresses created since the 0.0.172 release, and check whether they are Ethereum addresses that could have been created by this extension. To respond to the risk, affected users need to upgrade the product version and also move funds to a new wallet address.
Affected products
- Trustwallet Trust Wallet Browser Extension: from 0.0.172 before 0.0.183 — fixed in 0.0.183
- Trustwallet Trust Wallet Core: before 3.1.1 — fixed in 3.1.1
How to fix
Upgrade to a fixed version: Trustwallet Trust Wallet Browser Extension 0.0.183; Trustwallet Trust Wallet Core 3.1.1. Check the vendor advisory for mitigations.
References
- https://blog.ledger.com/Funds-of-every-wallet-created-with-the-Trust-Wallet-browser-extension-could-have-been-stolen/
- https://community.trustwallet.com/t/browser-extension-wasm-vulnerability-postmortem/750787
- https://community.trustwallet.com/t/wasm-vulnerability-incident-update-and-recommended-actions/750786
- https://github.com/trustwallet/wallet-core/compare/3.1.0...3.1.1
- https://twitter.com/TrustWallet/status/1649699428733947906
- https://blog.ledger.com/Funds-of-every-wallet-created-with-the-Trust-Wallet-browser-extension-could-have-been-stolen/
- https://community.trustwallet.com/t/browser-extension-wasm-vulnerability-postmortem/750787
- https://community.trustwallet.com/t/wasm-vulnerability-incident-update-and-recommended-actions/750786
- https://github.com/trustwallet/wallet-core/compare/3.1.0...3.1.1
- https://twitter.com/TrustWallet/status/1649699428733947906
Get alerted when CVE-2023-31290 or the next vulnerability affects your stack