CVE-2022-35936Evmos Ethermint
Medium 5.3 No auth needed
Follow: this CVE · Evmos · Evmos Ethermint We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- 1.4% probability of exploitation in 30 days · percentile 73
- Auth required
- No
- Published
- Aug 5, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-668
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
What happens
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.
What to do
- Apply the vendor's security update for Ethermint.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/crypto-org-chain/cronos |
< 0.7.1-rc2 |
0.7.1-rc2 |
go get github.com/crypto-org-chain/cronos@v0.7.1-rc2 |
| Go | github.com/crypto-org-chain/cronos |
< 0.7.1-rc2 |
0.7.1-rc2 |
go get github.com/crypto-org-chain/cronos@v0.7.1-rc2 |
| Go | github.com/evmos/ethermint |
< 0.18.0 |
0.18.0 |
go get github.com/evmos/ethermint@v0.18.0 |
| Go | github.com/evmos/ethermint |
< 0.18.0 |
0.18.0 |
go get github.com/evmos/ethermint@v0.18.0 |
| Go | github.com/evmos/evmos |
< 7.0.0 |
7.0.0 |
go get github.com/evmos/evmos@v7.0.0 |
| Go | github.com/evmos/evmos |
all |
no fixed version | — |
| Go | github.com/evmos/evmos/v2 |
all |
no fixed version | — |
| Go | github.com/evmos/evmos/v3 |
all |
no fixed version | — |
| Go | github.com/evmos/evmos/v4 |
all |
no fixed version | — |
| Go | github.com/evmos/evmos/v5 |
all |
no fixed version | — |
| Go | github.com/evmos/evmos/v6 |
all |
no fixed version | — |
| Go | github.com/evmos/evmos/v7 |
< 7.0.0 |
7.0.0 |
go get github.com/evmos/evmos/v7@v7.0.0 |
| Go | github.com/Kava-Labs/kava |
< 0.18.0 |
0.18.0 |
go get github.com/Kava-Labs/kava@v0.18.0 |
| Go | github.com/kava-labs/kava |
< 0.18.0 |
0.18.0 |
go get github.com/kava-labs/kava@v0.18.0 |
Per OSV / GitHub Advisories (GHSA-f92v-grc2-w2fg, GO-2022-0760). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| evmos | ethermint | < 0.18.0 |
| kava | kava | < 0.18.0 |
| crypto | cronos | ≤ 0.7.0 |
| evmos | evmos | < 7.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Third Party Advisory