CVE-2022-35936
MEDIUM 5.3CVSS 3.1Ethermint vulnerable to DoS through unintended Contract Selfdestruct
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 DeleteAccountfunction, 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.
- Published
- 5 Aug 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-668
- Also known as
- GHSA-f92v-grc2-w2fgGO-2022-0760
- Sources
- NVDJSONOSV GHSA-f92v-grc2-w2fgJSONOSV GO-2022-0760JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | evmos | ethermintcpe:2.3:a:evmos:ethermint:*:*:*:*:*:*:*:* |
< 0.18.0 | 0.18.0 |
| NVD | kava | kavacpe:2.3:a:kava:kava:*:*:*:*:*:*:*:* |
< 0.18.0 | 0.18.0 |
| NVD | crypto | cronoscpe:2.3:a:crypto:cronos:*:*:*:*:*:*:*:* |
<= 0.7.0 | |
| NVD | evmos | evmoscpe:2.3:a:evmos:evmos:*:*:*:*:*:*:*:* |
< 7.0.0 | 7.0.0 |
| OSV | Go | github.com/evmos/ethermint | < 0.18.0 | 0.18.0 |
| OSV | Go | github.com/evmos/evmos | < 7.0.0 | 7.0.0 |
| OSV | Go | github.com/crypto-org-chain/cronos | < 0.7.1-rc2 | 0.7.1-rc2 |
| OSV | Go | github.com/Kava-Labs/kava | < 0.18.0 | 0.18.0 |
| OSV | Go | github.com/evmos/evmos | all versions | |
| OSV | Go | github.com/evmos/evmos/v2 | all versions | |
| OSV | Go | github.com/evmos/evmos/v3 | all versions | |
| OSV | Go | github.com/evmos/evmos/v4 | all versions | |
| OSV | Go | github.com/evmos/evmos/v5 | all versions | |
| OSV | Go | github.com/evmos/evmos/v6 | all versions | |
| OSV | Go | github.com/evmos/evmos/v7 | < 7.0.0 | 7.0.0 |
| OSV | Go | github.com/kava-labs/kava | < 0.18.0 | 0.18.0 |
References
- https://github.com/evmos/ethermint/blob/c9d42d667b753147977a725e98ed116c933c76cb/x/evm/keeper/statedb.go#L199-L203 · Exploit, Third Party Advisory, WEB
- https://github.com/evmos/ethermint/commit/144741832007a26dbe950512acbda4ed95b2a451 · Patch, Third Party Advisory, WEB, FIX
- https://github.com/evmos/ethermint/security/advisories/GHSA-f92v-grc2-w2fg · Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2022-35936 · ADVISORY
- https://github.com/evmos/ethermint · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 5 Aug 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Aug 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 18 Aug 2022)