{"answers":{"affected":"18 open source packages ship an affected version, including github.com/evmos/ethermint, github.com/Kava-Labs/kava and github.com/crypto-org-chain/cronos. It affects 4 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-35936 exists.","fix":"Upgrade github.com/evmos/ethermint to 0.18.0 or later.","what":"CVE-2022-35936 is a high-severity denial of service vulnerability in evmos ethermint, published on 5 Aug 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-35936 and fix it if it is affected.\n\nWhat it is: CVE-2022-35936 is a high-severity denial of service vulnerability in evmos ethermint, published on 5 Aug 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-35936 exists.\n\nAffected packages and fixed versions:\n- github.com/evmos/ethermint (Go): affected all versions; fixed in 0.18.0\n- github.com/evmos/ethermint (Go): affected all versions; fixed in 0.18.0\n- github.com/evmos/ethermint (Go): affected all versions; fixed in 0.18.0\n- github.com/Kava-Labs/kava (Go): affected all versions; fixed in 0.18.0\n- github.com/Kava-Labs/kava (Go): affected all versions; fixed in 0.18.0\n- github.com/crypto-org-chain/cronos (Go): affected all versions; fixed in 0.7.1-rc2\n- github.com/crypto-org-chain/cronos (Go): affected all versions; fixed in 0.7.1-rc2\n- github.com/crypto-org-chain/cronos (Go): affected all versions; fixed in 0.7.1-rc2\n- github.com/evmos/evmos (Go): affected all versions; no fix listed\n- github.com/evmos/evmos (Go): affected all versions; fixed in 7.0.0\n- github.com/evmos/evmos (Go): affected all versions; fixed in 7.0.0\n- github.com/evmos/evmos/v2 (Go): affected all versions; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-35936/ (Markdown: https://insights.sbomify.com/CVE-2022-35936/index.md)","id":"CVE-2022-35936","markdown":"https://insights.sbomify.com/CVE-2022-35936/index.md","name":"CVE-2022-35936","record":{"aliases":["GHSA-f92v-grc2-w2fg","GO-2022-0760"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Ethermint Go library","requires_auth":"none","summary":"Attackers can cause denial of service for multiple contracts sharing bytecode by triggering selfdestruct on one, affecting Ethermint users.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"cronos","vendor":"crypto"},{"product":"ethermint","vendor":"evmos"},{"product":"evmos","vendor":"evmos"},{"product":"kava","vendor":"kava"}],"cvss":{"score":8.2,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H","version":"3.1"},"cwes":[{"id":"CWE-668","name":"Exposure of Resource to Wrong Sphere"}],"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 -\u003e bytecode` entry in the internal state.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Ethermint DoS through Unintended Contract Selfdestruct","id":"CVE-2022-35936","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2022"},"n_packages":18,"n_references":3,"next":{"headline":"OOB read in `Gather_nd` op in TensorFlow Lite","id":"CVE-2022-35937"},"packages":[{"ecosystem":"Go","fixed":["0.18.0"],"introduced":["0"],"last_affected":[],"package":"github.com/Kava-Labs/kava","purl":null,"source":"GHSA-f92v-grc2-w2fg"},{"ecosystem":"Go","fixed":["0.18.0"],"introduced":["0"],"last_affected":[],"package":"github.com/Kava-Labs/kava","purl":"pkg:golang/github.com/Kava-Labs/kava","source":"GHSA-f92v-grc2-w2fg"},{"ecosystem":"Go","fixed":["0.7.1-rc2"],"introduced":["0"],"last_affected":[],"package":"github.com/crypto-org-chain/cronos","purl":null,"source":"GHSA-f92v-grc2-w2fg"},{"ecosystem":"Go","fixed":["0.7.1-rc2"],"introduced":["0"],"last_affected":[],"package":"github.com/crypto-org-chain/cronos","purl":"pkg:golang/github.com/crypto-org-chain/cronos","source":"GHSA-f92v-grc2-w2fg"},{"ecosystem":"Go","fixed":["0.7.1-rc2"],"introduced":["0"],"last_affected":[],"package":"github.com/crypto-org-chain/cronos","purl":"pkg:golang/github.com/crypto-org-chain/cronos","source":"GO-2022-0760"},{"ecosystem":"Go","fixed":["0.18.0"],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/ethermint","purl":null,"source":"GHSA-f92v-grc2-w2fg"},{"ecosystem":"Go","fixed":["0.18.0"],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/ethermint","purl":"pkg:golang/github.com/evmos/ethermint","source":"GHSA-f92v-grc2-w2fg"},{"ecosystem":"Go","fixed":["0.18.0"],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/ethermint","purl":"pkg:golang/github.com/evmos/ethermint","source":"GO-2022-0760"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos","purl":"pkg:golang/github.com/evmos/evmos","source":"GO-2022-0760"},{"ecosystem":"Go","fixed":["7.0.0"],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos","purl":null,"source":"GHSA-f92v-grc2-w2fg"},{"ecosystem":"Go","fixed":["7.0.0"],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos","purl":"pkg:golang/github.com/evmos/evmos","source":"GHSA-f92v-grc2-w2fg"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v2","purl":"pkg:golang/github.com/evmos/evmos/v2","source":"GO-2022-0760"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v3","purl":"pkg:golang/github.com/evmos/evmos/v3","source":"GO-2022-0760"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v4","purl":"pkg:golang/github.com/evmos/evmos/v4","source":"GO-2022-0760"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v5","purl":"pkg:golang/github.com/evmos/evmos/v5","source":"GO-2022-0760"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v6","purl":"pkg:golang/github.com/evmos/evmos/v6","source":"GO-2022-0760"},{"ecosystem":"Go","fixed":["7.0.0"],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v7","purl":"pkg:golang/github.com/evmos/evmos/v7","source":"GO-2022-0760"},{"ecosystem":"Go","fixed":["0.18.0"],"introduced":["0"],"last_affected":[],"package":"github.com/kava-labs/kava","purl":"pkg:golang/github.com/kava-labs/kava","source":"GO-2022-0760"}],"prev":{"headline":"`CHECK` failure in `SobolSample` via missing validation in TensorFlow","id":"CVE-2022-35935"},"products":["ethermint"],"published":"2022-08-05","related":[{"cvss_score":7.5,"headline":"Drainage of FeeCollector's Block Transaction Fees","id":"CVE-2021-43839","kev_date_added":null,"published":"2021-12-21"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-22","vendors":["evmos"]},"summary":"Attackers can cause denial of service for multiple contracts sharing bytecode by triggering selfdestruct on one, affecting Ethermint users.","url":"https://insights.sbomify.com/CVE-2022-35936/"}