Overview
- 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.
- Source
- security-advisories@github.com
- NVD status
- Analyzed
Risk scores
CVSS 3.1
- Type
- Primary
- Base score
- 5.3
- Impact score
- 1.4
- Exploitability score
- 3.9
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- Severity
- MEDIUM
Weaknesses
- security-advisories@github.com
- CWE-668
Social media
- Hype score
- Not currently trending
Configurations
[ { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:a:evmos:ethermint:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "5715442E-55C7-4BFA-A571-0B2EEE375D93", "versionEndExcluding": "0.18.0" } ], "operator": "OR" } ] }, { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:a:kava:kava:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "A675E2F4-CA8D-4126-906B-B279839377C2", "versionEndExcluding": "0.18.0" } ], "operator": "OR" } ] }, { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:a:crypto:cronos:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "7F1D7275-5477-4026-83F6-AFFA244561A8", "versionEndIncluding": "0.7.0" } ], "operator": "OR" } ] }, { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:a:evmos:evmos:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "6F059647-951E-4EE7-A5F8-644353B214D4", "versionEndExcluding": "7.0.0" } ], "operator": "OR" } ] } ]