← Back

CVE-2022-35936

nvd nist
Published: Aug 5, 2022Modified: Jun 17, 2026

JSON object

Loading...
5.3
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Exploitability: 3.9 / Impact: 1.4
Source: NVD

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.

Affected (4)

Products: Evmos: Ethermint, Evmos · Kava: Kava · Crypto: Cronos
2 products
Ethermint
Evmos
1 product
Kava
1 product
Cronos
Configuration A
1 vulnerable
Vulnerable SoftwareAffected Versions
Before 0.18.0
Configuration B
1 vulnerable
Vulnerable SoftwareAffected Versions
Before 0.18.0
Configuration C
1 vulnerable
Vulnerable SoftwareAffected Versions
Up to 0.7.0
Configuration D
1 vulnerable
Vulnerable SoftwareAffected Versions
Before 7.0.0

References (6)

Source: security-advisories@github.com
PatchThird Party Advisory
Source: security-advisories@github.com
Third Party Advisory
Source: af854a3a-2127-422b-91ae-364da2661108
PatchThird Party Advisory
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory

Timeline

No history available yet.