{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-32644","id":"CVE-2024-32644","title":"Evmos' transaction execution not accounting for all state transition after interaction with precompiles","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(","descriptionLong":"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 >=V17.0.0.","published":"2024-04-19T14:53:44.423Z","updated":"2026-10-28T02:31:07.350818425Z","reserved":"2024-04-16T14:15:26.874Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","rating":"critical","source":"GitHub_M"},"metrics":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","rating":"critical","source":"GitHub_M"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","rating":"critical","source":"github.com"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","rating":"critical","source":"GitHub"}],"rating":"critical","products":["evmos"],"affectedProducts":[{"vendor":"evmos","product":"evmos","defaultStatus":null,"versions":[{"version":"< 17.0.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/evmos/evmos/v16","purl":"pkg:golang/github.com/evmos/evmos/v16","ranges":["<17.0.0","all versions"],"fixed":["17.0.0"],"advisory":"GHSA-3fp5-2xwh-fxm6"},{"ecosystem":"Go","name":"github.com/evmos/evmos/v7","purl":"pkg:golang/github.com/evmos/evmos/v7","ranges":["<=7.0.0","all versions"],"fixed":[],"advisory":"GHSA-3fp5-2xwh-fxm6"},{"ecosystem":"Go","name":"github.com/evmos/evmos/v6","purl":"pkg:golang/github.com/evmos/evmos/v6","ranges":["<=6.0.4","all versions"],"fixed":[],"advisory":"GHSA-3fp5-2xwh-fxm6"},{"ecosystem":"Go","name":"github.com/evmos/evmos/v5","purl":"pkg:golang/github.com/evmos/evmos/v5","ranges":["<=5.0.0","all versions"],"fixed":[],"advisory":"GHSA-3fp5-2xwh-fxm6"},{"ecosystem":"Go","name":"github.com/tharsis/evmos","purl":"pkg:golang/github.com/tharsis/evmos","ranges":["<=1.1.3","all versions"],"fixed":[],"advisory":"GHSA-3fp5-2xwh-fxm6"},{"ecosystem":"Go","name":"github.com/tharsis/evmos/v2","purl":"pkg:golang/github.com/tharsis/evmos/v2","ranges":["<=2.0.2","all versions"],"fixed":[],"advisory":"GHSA-3fp5-2xwh-fxm6"},{"ecosystem":"Go","name":"github.com/tharsis/evmos/v3","purl":"pkg:golang/github.com/tharsis/evmos/v3","ranges":["<=3.0.3","all versions"],"fixed":[],"advisory":"GHSA-3fp5-2xwh-fxm6"},{"ecosystem":"Go","name":"github.com/tharsis/evmos/v4","purl":"pkg:golang/github.com/tharsis/evmos/v4","ranges":["<=4.0.2","all versions"],"fixed":[],"advisory":"GHSA-3fp5-2xwh-fxm6"},{"ecosystem":"Go","name":"github.com/tharsis/evmos/v5","purl":"pkg:golang/github.com/tharsis/evmos/v5","ranges":["<=5.0.1","all versions"],"fixed":[],"advisory":"GHSA-3fp5-2xwh-fxm6"},{"ecosystem":"Go","name":"github.com/evmos/evmos","purl":"pkg:golang/github.com/evmos/evmos","ranges":["all versions"],"fixed":[],"advisory":"GO-2024-2715"},{"ecosystem":"Go","name":"github.com/evmos/evmos/v2","purl":"pkg:golang/github.com/evmos/evmos/v2","ranges":["all versions"],"fixed":[],"advisory":"GO-2024-2715"},{"ecosystem":"Go","name":"github.com/evmos/evmos/v3","purl":"pkg:golang/github.com/evmos/evmos/v3","ranges":["all versions"],"fixed":[],"advisory":"GO-2024-2715"},{"ecosystem":"Go","name":"github.com/evmos/evmos/v4","purl":"pkg:golang/github.com/evmos/evmos/v4","ranges":["all versions"],"fixed":[],"advisory":"GO-2024-2715"},{"ecosystem":"Go","name":"github.com/evmos/evmos/v8","purl":"pkg:golang/github.com/evmos/evmos/v8","ranges":["all versions"],"fixed":[],"advisory":"GO-2024-2715"},{"ecosystem":"Go","name":"github.com/evmos/evmos/v9","purl":"pkg:golang/github.com/evmos/evmos/v9","ranges":["all versions"],"fixed":[],"advisory":"GO-2024-2715"},{"ecosystem":"Go","name":"github.com/evmos/evmos/v10","purl":"pkg:golang/github.com/evmos/evmos/v10","ranges":["all versions"],"fixed":[],"advisory":"GO-2024-2715"},{"ecosystem":"Go","name":"github.com/evmos/evmos/v11","purl":"pkg:golang/github.com/evmos/evmos/v11","ranges":["all versions"],"fixed":[],"advisory":"GO-2024-2715"},{"ecosystem":"Go","name":"github.com/evmos/evmos/v12","purl":"pkg:golang/github.com/evmos/evmos/v12","ranges":["all versions"],"fixed":[],"advisory":"GO-2024-2715"},{"ecosystem":"Go","name":"github.com/evmos/evmos/v13","purl":"pkg:golang/github.com/evmos/evmos/v13","ranges":["all versions"],"fixed":[],"advisory":"GO-2024-2715"},{"ecosystem":"Go","name":"github.com/evmos/evmos/v14","purl":"pkg:golang/github.com/evmos/evmos/v14","ranges":["all versions"],"fixed":[],"advisory":"GO-2024-2715"},{"ecosystem":"Go","name":"github.com/evmos/evmos/v15","purl":"pkg:golang/github.com/evmos/evmos/v15","ranges":["all versions"],"fixed":[],"advisory":"GO-2024-2715"},{"ecosystem":"Go","name":"github.com/evmos/evmos/v17","purl":"pkg:golang/github.com/evmos/evmos/v17","ranges":["<17.0.0"],"fixed":["17.0.0"],"advisory":"GO-2024-2715"}],"cwes":["CWE-662"],"aliases":["GHSA-3fp5-2xwh-fxm6","GO-2024-2715"],"references":[{"url":"https://github.com/evmos/evmos/security/advisories/GHSA-3fp5-2xwh-fxm6","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://github.com/evmos/evmos/commit/08982b5ee726b97bc50eaf58d1914829648b6a5f","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/evmos/evmos/blob/b196a522ba4951890b40992e9f97aa610f8b5f9c/x/evm/statedb/statedb.go#L460-L465","tags":["x_refsource_MISC","x_transferred","Product","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/32xxx/CVE-2024-32644.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-32644","tags":["advisory"]},{"url":"https://github.com/evmos/evmos","tags":["package"]},{"url":"https://github.com/evmos/evmos/blob/b196a522ba4951890b40992e9f97aa610f8b5f9c/x/evm/statedb/state_object.go#L53-L68","tags":["web"]},{"url":"https://github.com/evmos/evmos/blob/b196a522ba4951890b40992e9f97aa610f8b5f9c/x/evm/statedb/statedb.go#L33-L55","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total"},"epss":0.00943,"epssPercentile":0.61777,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-32644","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-32644","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-32644","ok":true,"note":"22 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-3fp5-2xwh-fxm6","ok":true,"note":"GHSA-3fp5-2xwh-fxm6"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-32644","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["chrome"],"critical":["CVSS 9.1 in a widely used technology"],"attention":null}