GHSA-gwj5-wp6r-5q9f
JSON

8.2high

Cronos vulnerable to DoS through unintended Contract Selfdestruct

Severity
8.2high CVSS:3.1 by GitHub
Published
Last changed
Also known as
GO-2022-0829

Description

In Cronos nodes running versions before v0.7.0, the contract selfdestruct invocation permanently removes the corresponding bytecode from the internal database storage. However, due to a bug in Ethermint, 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. Thanks to the successfully coordinated security vulnerability disclosure, no smart contracts were impacted through the use of this vulnerability. Smart contract states and storage values are not affected by this vulnerability. This problem has been patched in Cronos v0.8.0. The patch has state machine-breaking changes and the required coordinated network upgrade was done on the block height 3982500 on the Cronos mainnet beta network. 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.

Affected

Product or packageVersionsReported by
github.com/crypto-org-chain/cronos (Go)before 0.8.0GitHub Advisory Database, Go Vulnerability Database

Classification

What each source says

GitHub Advisory Database

In Cronos nodes running versions before v0.7.0, the contract selfdestruct invocation permanently removes the corresponding bytecode from the internal database storage. However, due to a bug in Ethermint, 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. Thanks to the successfully coordinated security vulnerability disclosure, no smart contracts were impacted through the use of this vulnerability. Smart contract states and storage values are not affected by this vulnerability. This problem has been patched in Cronos v0.8.0. The patch has state machine-breaking changes and the required coordinated network upgrade was done on the block height 3982500 on the Cronos mainnet beta network. 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.

Go Vulnerability Database

Cronos vulnerable to DoS through unintended Contract Selfdestruct in github.com/crypto-org-chain/cronos

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-gwj5-wp6r-5q9f changed 2024-08-21CC-BY-4.0
Go Vulnerability DatabaseGO-2022-0829 changed 2026-03-03CC-BY-4.0