{"id":"CVE-2024-37153","published":"2024-06-06T18:51:30Z","modified":"2024-08-02T03:50:54Z","title":"Evmos's contract balance not updating correctly after interchain transaction","vendor":"evmos","product":"evmos","tier":"tail","description":{"text":"Evmos is the Ethereum Virtual Machine (EVM) Hub on the Cosmos Network. There is an issue with how to liquid stake using Safe which itself is a contract. The bug only appears when there is a local state change together with an ICS20 transfer in the same function and uses the contract's balance, that is using the contract address as the sender parameter in an ICS20 transfer using the ICS20 precompile. This is in essence the \"infinite money glitch\" allowing contracts to double the supply of Evmos after each transaction.The issue has been patched in versions >=V18.1.0. ","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00618,"percentile":0.50552,"provenance":"source"},"cwes":[{"id":"CWE-670","name":"Always-Incorrect Control Flow Implementation"}],"references":[{"url":"https://github.com/evmos/evmos/security/advisories/GHSA-xgr7-jgq3-mhmc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/evmos/evmos/commit/478b7a62e7af57a70cf3a01126c7f5a89bee69d7","tags":["x_refsource_MISC"]}],"priority":{"score":15.4,"factors":[{"name":"EPSS percentile","points":10.11},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"evmos","affectedVersions":[{"vendor":"evmos","product":"evmos","versions":["<= 18.0.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-06-06T19:43:28.332952Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/evmos/evmos/v18","vulnerableRanges":["<18.1.0"],"patched":["18.1.0"],"from":["GHSA-xgr7-jgq3-mhmc","GO-2024-2903"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/evmos/evmos/v17","vulnerableRanges":["<18.1.0","all versions"],"patched":["18.1.0"],"from":["GHSA-xgr7-jgq3-mhmc","GO-2024-2903"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/evmos/evmos/v16","vulnerableRanges":["<18.1.0","all versions"],"patched":["18.1.0"],"from":["GHSA-xgr7-jgq3-mhmc","GO-2024-2903"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/evmos/evmos/v15","vulnerableRanges":["<18.1.0","all versions"],"patched":["18.1.0"],"from":["GHSA-xgr7-jgq3-mhmc","GO-2024-2903"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/evmos/evmos/v14","vulnerableRanges":["<18.1.0","all versions"],"patched":["18.1.0"],"from":["GHSA-xgr7-jgq3-mhmc","GO-2024-2903"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/evmos/evmos/v13","vulnerableRanges":["<18.1.0","all versions"],"patched":["18.1.0"],"from":["GHSA-xgr7-jgq3-mhmc","GO-2024-2903"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/evmos/evmos/v12","vulnerableRanges":["<18.1.0","all versions"],"patched":["18.1.0"],"from":["GHSA-xgr7-jgq3-mhmc","GO-2024-2903"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/evmos/evmos/v11","vulnerableRanges":["<18.1.0","all versions"],"patched":["18.1.0"],"from":["GHSA-xgr7-jgq3-mhmc","GO-2024-2903"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/evmos/evmos/v10","vulnerableRanges":["<18.1.0","all versions"],"patched":["18.1.0"],"from":["GHSA-xgr7-jgq3-mhmc","GO-2024-2903"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/evmos/evmos/v9","vulnerableRanges":["<18.1.0","all versions"],"patched":["18.1.0"],"from":["GHSA-xgr7-jgq3-mhmc","GO-2024-2903"],"provenance":"source"}],"summary":{"text":"Evmos, the EVM hub on the Cosmos Network, has a flaw in how contract balances are updated when a function combines a local state change with an ICS20 transfer that uses the contract's own address as the sender via the ICS20 precompile, as seen in liquid staking through Safe contracts. An attacker who can deploy or interact with such a contract, with no authentication or user interaction required, can exploit the incorrect control flow to duplicate Evmos supply with each transaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:29:22Z"},"euvd":{"id":"EUVD-2024-2214","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-evmos-cve-2024-32644","parents":[{"from":"CVE-2024-32644","to":"CVE-2024-37153","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["precompiles/ics20/ics20.go"],"commits":["https://github.com/evmos/evmos/commit/08982b5ee726b97bc50eaf58d1914829648b6a5f","https://github.com/evmos/evmos/commit/478b7a62e7af57a70cf3a01126c7f5a89bee69d7"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2024-32873","published":"2024-06-06","fixed":"18.0.0","kev":false,"link":{"from":"CVE-2024-32873","to":"CVE-2024-37153","relation":"successor","confidence":"high","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/evmos/evmos/v17","fromFixed":"18.0.0","toFixed":"18.1.0","daysApart":0},{"kind":"version-step","provenance":"source","package":"Go:github.com/evmos/evmos/v16","fromFixed":"18.0.0","toFixed":"18.1.0","daysApart":0},{"kind":"same-code","provenance":"machine","files":["x/evm/keeper/precompiles.go"],"commits":["https://github.com/evmos/evmos/commit/b2a09ca66613d8b04decd3f2dcba8e1e77709dcb","https://github.com/evmos/evmos/commit/478b7a62e7af57a70cf3a01126c7f5a89bee69d7"],"basis":"shared file"}]}},{"cve":"CVE-2024-37153","published":"2024-06-06","fixed":"18.1.0","kev":false}],"package":"Go:github.com/evmos/evmos/v17"}}