{"answers":{"affected":"40 open source packages ship an affected version, including github.com/evmos/evmos/v16, github.com/evmos/evmos and github.com/evmos/evmos/v10. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-32644 in the wild and no public exploit code.","fix":"Upgrade github.com/evmos/evmos/v16 to 17.0.0 or later.","what":"CVE-2024-32644 is a critical vulnerability in evmos, published on 19 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-32644 and fix it if it is affected.\n\nWhat it is: CVE-2024-32644 is a critical vulnerability in evmos, published on 19 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-32644 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/evmos/evmos/v16 (Go): affected all versions; no fix listed\n- github.com/evmos/evmos/v16 (Go): affected all versions; fixed in 17.0.0\n- github.com/evmos/evmos/v16 (Go): affected all versions; fixed in 17.0.0\n- github.com/evmos/evmos (Go): affected all versions; no fix listed\n- github.com/evmos/evmos/v10 (Go): affected all versions; no fix listed\n- github.com/evmos/evmos/v11 (Go): affected all versions; no fix listed\n- github.com/evmos/evmos/v12 (Go): affected all versions; no fix listed\n- github.com/evmos/evmos/v13 (Go): affected all versions; no fix listed\n- github.com/evmos/evmos/v14 (Go): affected all versions; no fix listed\n- github.com/evmos/evmos/v15 (Go): affected all versions; no fix listed\n- github.com/evmos/evmos/v17 (Go): affected all versions; fixed in 17.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-2024-32644/ (Markdown: https://insights.sbomify.com/CVE-2024-32644/index.md)","id":"CVE-2024-32644","markdown":"https://insights.sbomify.com/CVE-2024-32644/index.md","name":"CVE-2024-32644","record":{"aliases":["GHSA-3fp5-2xwh-fxm6","GO-2024-2715"],"analysis":{"component_type":"other","fix_type":"upgrade","impacts":["data_modify","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"EVM blockchain","requires_auth":"none","summary":"Attackers can mint arbitrary tokens or drain funds by exploiting state synchronization flaws between Cosmos SDK and EVM during transaction execution.","user_interaction":"not_required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"evmos","vendor":"evmos"}],"cvss":{"score":9.1,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-662","name":"Improper Synchronization"}],"description":"Evmos is a scalable, high-throughput Proof-of-Stake EVM blockchain that is fully compatible and interoperable with Ethereum. Prior to 17.0.0, there is a way to mint arbitrary tokens due to the possibility to have two different states not in sync during the execution of a transaction. The exploit is based on the fact that to sync the Cosmos SDK state and the EVM one, we rely on the `stateDB.Commit()` method. When we call this method, we iterate though all the `dirtyStorage` and, **if and only if** it is different than the `originStorage`, we set the new state. Setting the new state means we update the Cosmos SDK KVStore.  If a contract storage state that is the same before and after a transaction, but is changed during the transaction and can call an external contract after the change, it can be exploited to make the transaction similar to non-atomic. The vulnerability is **critical** since this could lead to drain of funds through creative SC interactions.  The issue has been patched in versions \u003e=V17.0.0.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Evmos' transaction execution not accounting for all state transition after interaction with precompiles","id":"CVE-2024-32644","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"race_condition","year":"2024"},"n_packages":40,"n_references":3,"next":{"headline":"vyper performs incorrect topic logging in raw_log","id":"CVE-2024-32645"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos","purl":"pkg:golang/github.com/evmos/evmos","source":"GO-2024-2715"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v10","purl":"pkg:golang/github.com/evmos/evmos/v10","source":"GO-2024-2715"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v11","purl":"pkg:golang/github.com/evmos/evmos/v11","source":"GO-2024-2715"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v12","purl":"pkg:golang/github.com/evmos/evmos/v12","source":"GO-2024-2715"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v13","purl":"pkg:golang/github.com/evmos/evmos/v13","source":"GO-2024-2715"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v14","purl":"pkg:golang/github.com/evmos/evmos/v14","source":"GO-2024-2715"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v15","purl":"pkg:golang/github.com/evmos/evmos/v15","source":"GO-2024-2715"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v16","purl":"pkg:golang/github.com/evmos/evmos/v16","source":"GO-2024-2715"},{"ecosystem":"Go","fixed":["17.0.0"],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v16","purl":null,"source":"GHSA-3fp5-2xwh-fxm6"},{"ecosystem":"Go","fixed":["17.0.0"],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v16","purl":"pkg:golang/github.com/evmos/evmos/v16","source":"GHSA-3fp5-2xwh-fxm6"},{"ecosystem":"Go","fixed":["17.0.0"],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v17","purl":"pkg:golang/github.com/evmos/evmos/v17","source":"GO-2024-2715"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v2","purl":"pkg:golang/github.com/evmos/evmos/v2","source":"GO-2024-2715"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v3","purl":"pkg:golang/github.com/evmos/evmos/v3","source":"GO-2024-2715"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v4","purl":"pkg:golang/github.com/evmos/evmos/v4","source":"GO-2024-2715"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v5","purl":"pkg:golang/github.com/evmos/evmos/v5","source":"GO-2024-2715"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["5.0.0"],"package":"github.com/evmos/evmos/v5","purl":null,"source":"GHSA-3fp5-2xwh-fxm6"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["5.0.0"],"package":"github.com/evmos/evmos/v5","purl":"pkg:golang/github.com/evmos/evmos/v5","source":"GHSA-3fp5-2xwh-fxm6"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v6","purl":"pkg:golang/github.com/evmos/evmos/v6","source":"GO-2024-2715"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["6.0.4"],"package":"github.com/evmos/evmos/v6","purl":null,"source":"GHSA-3fp5-2xwh-fxm6"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["6.0.4"],"package":"github.com/evmos/evmos/v6","purl":"pkg:golang/github.com/evmos/evmos/v6","source":"GHSA-3fp5-2xwh-fxm6"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v7","purl":"pkg:golang/github.com/evmos/evmos/v7","source":"GO-2024-2715"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["7.0.0"],"package":"github.com/evmos/evmos/v7","purl":null,"source":"GHSA-3fp5-2xwh-fxm6"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["7.0.0"],"package":"github.com/evmos/evmos/v7","purl":"pkg:golang/github.com/evmos/evmos/v7","source":"GHSA-3fp5-2xwh-fxm6"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v8","purl":"pkg:golang/github.com/evmos/evmos/v8","source":"GO-2024-2715"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/evmos/evmos/v9","purl":"pkg:golang/github.com/evmos/evmos/v9","source":"GO-2024-2715"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/tharsis/evmos","purl":"pkg:golang/github.com/tharsis/evmos","source":"GO-2024-2715"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["1.1.3"],"package":"github.com/tharsis/evmos","purl":null,"source":"GHSA-3fp5-2xwh-fxm6"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["1.1.3"],"package":"github.com/tharsis/evmos","purl":"pkg:golang/github.com/tharsis/evmos","source":"GHSA-3fp5-2xwh-fxm6"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/tharsis/evmos/v2","purl":"pkg:golang/github.com/tharsis/evmos/v2","source":"GO-2024-2715"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["2.0.2"],"package":"github.com/tharsis/evmos/v2","purl":null,"source":"GHSA-3fp5-2xwh-fxm6"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["2.0.2"],"package":"github.com/tharsis/evmos/v2","purl":"pkg:golang/github.com/tharsis/evmos/v2","source":"GHSA-3fp5-2xwh-fxm6"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/tharsis/evmos/v3","purl":"pkg:golang/github.com/tharsis/evmos/v3","source":"GO-2024-2715"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["3.0.3"],"package":"github.com/tharsis/evmos/v3","purl":null,"source":"GHSA-3fp5-2xwh-fxm6"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["3.0.3"],"package":"github.com/tharsis/evmos/v3","purl":"pkg:golang/github.com/tharsis/evmos/v3","source":"GHSA-3fp5-2xwh-fxm6"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/tharsis/evmos/v4","purl":"pkg:golang/github.com/tharsis/evmos/v4","source":"GO-2024-2715"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["4.0.2"],"package":"github.com/tharsis/evmos/v4","purl":null,"source":"GHSA-3fp5-2xwh-fxm6"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["4.0.2"],"package":"github.com/tharsis/evmos/v4","purl":"pkg:golang/github.com/tharsis/evmos/v4","source":"GHSA-3fp5-2xwh-fxm6"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/tharsis/evmos/v5","purl":"pkg:golang/github.com/tharsis/evmos/v5","source":"GO-2024-2715"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["5.0.1"],"package":"github.com/tharsis/evmos/v5","purl":null,"source":"GHSA-3fp5-2xwh-fxm6"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["5.0.1"],"package":"github.com/tharsis/evmos/v5","purl":"pkg:golang/github.com/tharsis/evmos/v5","source":"GHSA-3fp5-2xwh-fxm6"}],"prev":{"headline":"Masa CMS vulnerable to authentication bypass with /tag/","id":"CVE-2024-32643"},"products":["evmos"],"published":"2024-04-19","related":[{"cvss_score":8.8,"headline":"Evmos vulnerable to exploit of smart contract account and vesting","id":"CVE-2024-39696","kev_date_added":null,"published":"2024-07-05"},{"cvss_score":8.1,"headline":"Account compromise in Evmos","id":"CVE-2022-24738","kev_date_added":null,"published":"2022-03-07"},{"cvss_score":7.5,"headline":"Evmos's contract balance not updating correctly after interchain transaction","id":"CVE-2024-37153","kev_date_added":null,"published":"2024-06-06"},{"cvss_score":5.3,"headline":"Evmos allows unvested token delegations","id":"CVE-2024-37154","kev_date_added":null,"published":"2024-06-06"},{"cvss_score":3.5,"headline":"Evmos is missing precompile checks","id":"CVE-2024-37158","kev_date_added":null,"published":"2024-06-17"},{"cvss_score":3.5,"headline":"Evmos is missing create validator check","id":"CVE-2024-37159","kev_date_added":null,"published":"2024-06-17"}],"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":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["evmos"]},"summary":"Attackers can mint arbitrary tokens or drain funds by exploiting state synchronization flaws between Cosmos SDK and EVM during transaction execution.","url":"https://insights.sbomify.com/CVE-2024-32644/"}