Vulnerability Description
Ethermint is an Ethereum library. In Ethermint running versions before `v0.17.2`, the contract `selfdestruct` invocation permanently removes the corresponding bytecode from the internal database storage. However, due to a bug in the `DeleteAccount`function, all contracts that used the identical bytecode (i.e shared the same `CodeHash`) will also stop working once one contract invokes `selfdestruct`, even though the other contracts did not invoke the `selfdestruct` OPCODE. This vulnerability has been patched in Ethermint version v0.18.0. The patch has state machine-breaking changes for applications using Ethermint, so a coordinated upgrade procedure is required. A workaround is available. If a contract is subject to DoS due to this issue, the user can redeploy the same contract, i.e. with identical bytecode, so that the original contract's code is recovered. The new contract deployment restores the `bytecode hash -> bytecode` entry in the internal state.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Evmos | Ethermint | < 0.18.0 |
| Kava | Kava | < 0.18.0 |
| Crypto | Cronos | <= 0.7.0 |
| Evmos | Evmos | < 7.0.0 |
Related Weaknesses (CWE)
References
- https://github.com/evmos/ethermint/blob/c9d42d667b753147977a725e98ed116c933c76cbExploitThird Party Advisory
- https://github.com/evmos/ethermint/commit/144741832007a26dbe950512acbda4ed95b2a4PatchThird Party Advisory
- https://github.com/evmos/ethermint/security/advisories/GHSA-f92v-grc2-w2fgThird Party Advisory
- https://github.com/evmos/ethermint/blob/c9d42d667b753147977a725e98ed116c933c76cbExploitThird Party Advisory
- https://github.com/evmos/ethermint/commit/144741832007a26dbe950512acbda4ed95b2a4PatchThird Party Advisory
- https://github.com/evmos/ethermint/security/advisories/GHSA-f92v-grc2-w2fgThird Party Advisory
FAQ
What is CVE-2022-35936?
CVE-2022-35936 is a vulnerability with a CVSS score of 8.2 (HIGH). Ethermint is an Ethereum library. In Ethermint running versions before `v0.17.2`, the contract `selfdestruct` invocation permanently removes the corresponding bytecode from the internal database stora...
How severe is CVE-2022-35936?
CVE-2022-35936 has been rated HIGH with a CVSS base score of 8.2/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2022-35936?
Check the references section above for vendor advisories and patch information. Affected products include: Evmos Ethermint, Kava Kava, Crypto Cronos, Evmos Evmos.