CVEfocus › CVE database › CVE-2022-35936

CVE-2022-35936Ethermint DoS through Unintended Contract Selfdestruct

CVSS 8.2 HighEPSS 1.4% (higher than 73% of CVEs)Published 2022-08-05Updated 2025-04-22Assigner: GitHub_M

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.

CWE-668

What to do

Fixed builds are available from Go: see the table below for the fixed version per release.

Go has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

6Fixed
5Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Go librarygithub.com/Kava-Labs/kavaFixed0.18.0GHSA-f92v-grc2-w2fg
Go librarygithub.com/crypto-org-chain/cronosFixed0.7.1-rc2GHSA-f92v-grc2-w2fg
Go librarygithub.com/evmos/ethermintFixed0.18.0GHSA-f92v-grc2-w2fg
Go librarygithub.com/evmos/evmosFixed7.0.0GO-2022-0760
Go librarygithub.com/evmos/evmos/v2Fix pendingGO-2022-0760
Go librarygithub.com/evmos/evmos/v3Fix pendingGO-2022-0760
Go librarygithub.com/evmos/evmos/v4Fix pendingGO-2022-0760
Go librarygithub.com/evmos/evmos/v5Fix pendingGO-2022-0760
Go librarygithub.com/evmos/evmos/v6Fix pendingGO-2022-0760
Go librarygithub.com/evmos/evmos/v7Fixed7.0.0GO-2022-0760
Go librarygithub.com/kava-labs/kavaFixed0.18.0GO-2022-0760

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.