cve.bz

CVE-2022-35936

5.3 mediumEPSS 1.5%

Medium (5.3). EPSS 1.5% chance of exploitation in the next 30 days. Fixed in github.com/evmos/ethermint 0.18.0.

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.

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS
1.5% chance of exploitation in the next 30 days; higher than 73% of CVEs (scores of 2026-10-31)
CWE
CWE-668
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-f92v-grc2-w2fgGogithub.com/evmos/ethermint<0.18.00.18.0
GHSA-f92v-grc2-w2fgGogithub.com/evmos/evmos<7.0.07.0.0
GHSA-f92v-grc2-w2fgGogithub.com/crypto-org-chain/cronos<0.7.1-rc20.7.1-rc2
GHSA-f92v-grc2-w2fgGogithub.com/Kava-Labs/kava<0.18.00.18.0
GO-2022-0760Gogithub.com/crypto-org-chain/cronos<0.7.1-rc20.7.1-rc2
GO-2022-0760Gogithub.com/evmos/ethermint<0.18.00.18.0
GO-2022-0760Gogithub.com/evmos/evmosall versionsno fix published
GO-2022-0760Gogithub.com/evmos/evmos/v2all versionsno fix published
GO-2022-0760Gogithub.com/evmos/evmos/v3all versionsno fix published
GO-2022-0760Gogithub.com/evmos/evmos/v4all versionsno fix published
GO-2022-0760Gogithub.com/evmos/evmos/v5all versionsno fix published
GO-2022-0760Gogithub.com/evmos/evmos/v6all versionsno fix published
GO-2022-0760Gogithub.com/evmos/evmos/v7<7.0.07.0.0
GO-2022-0760Gogithub.com/kava-labs/kava<0.18.00.18.0

References

Check your stackJSON