CVE-2022-35936
CVSS V2 None
CVSS V3 Medium 5.3
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.
Overview
- CVE ID
- CVE-2022-35936
- Assigner
- security-advisories@github.com
- Vulnerability Status
- Analyzed
- Published Version
- 2022-08-05T13:15:08
- Last Modified Date
- 2022-08-13T00:59:12
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:evmos:ethermint:*:*:*:*:*:*:*:* | 1 | OR | 0.18.0 | |
cpe:2.3:a:kava:kava:*:*:*:*:*:*:*:* | 1 | OR | 0.18.0 | |
cpe:2.3:a:crypto:cronos:*:*:*:*:*:*:*:* | 1 | OR | 0.7.0 | |
cpe:2.3:a:evmos:evmos:*:*:*:*:*:*:*:* | 1 | OR | 7.0.0 |
CVSS Version 3
- Version
- 3.1
- Vector String
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- Attack Vector
- NETWORK
- Attack Compatibility
- LOW
- Privileges Required
- NONE
- User Interaction
- NONE
- Scope
- UNCHANGED
- Confidentiality Impact
- NONE
- Availability Impact
- LOW
- Base Score
- 5.3
- Base Severity
- MEDIUM
- Exploitability Score
- 3.9
- Impact Score
- 1.4
References
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2022-35936 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-35936 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-08-05 14:00:05 | Added to TrackCVE |