Vulnerability · Published Jun 6, 2024 · Assigned by GitHub_M
CVE-2024-37153Evmos's contract balance not updating correctly after interchain transaction
High 7.5
In plain English
A high-severity security flaw in evmos from evmos. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 50% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/evmos/evmos | no fix listed | GO-2024-2903 |
| Go | github.com/evmos/evmos/v10 | 18.1.0 | GHSA-xgr7-jgq3-mhmc |
| Go | github.com/evmos/evmos/v10 | no fix listed | GO-2024-2903 |
| Go | github.com/evmos/evmos/v11 | 18.1.0 | GHSA-xgr7-jgq3-mhmc |
| Go | github.com/evmos/evmos/v11 | no fix listed | GO-2024-2903 |
| Go | github.com/evmos/evmos/v12 | no fix listed | GO-2024-2903 |
| Go | github.com/evmos/evmos/v12 | 18.1.0 | GHSA-xgr7-jgq3-mhmc |
| Go | github.com/evmos/evmos/v13 | no fix listed | GO-2024-2903 |
| Go | github.com/evmos/evmos/v13 | 18.1.0 | GHSA-xgr7-jgq3-mhmc |
| Go | github.com/evmos/evmos/v14 | no fix listed | GO-2024-2903 |
| Go | github.com/evmos/evmos/v14 | 18.1.0 | GHSA-xgr7-jgq3-mhmc |
| Go | github.com/evmos/evmos/v15 | no fix listed | GO-2024-2903 |
| Go | github.com/evmos/evmos/v15 | 18.1.0 | GHSA-xgr7-jgq3-mhmc |
| Go | github.com/evmos/evmos/v16 | no fix listed | GO-2024-2903 |
| Go | github.com/evmos/evmos/v16 | 18.1.0 | GHSA-xgr7-jgq3-mhmc |
| Go | github.com/evmos/evmos/v17 | no fix listed | GO-2024-2903 |
| Go | github.com/evmos/evmos/v17 | 18.1.0 | GHSA-xgr7-jgq3-mhmc |
| Go | github.com/evmos/evmos/v18 | 18.1.0 | GO-2024-2903 |
| Go | github.com/evmos/evmos/v18 | 18.1.0 | GHSA-xgr7-jgq3-mhmc |
| Go | github.com/evmos/evmos/v2 | no fix listed | GO-2024-2903 |
| Go | github.com/evmos/evmos/v3 | no fix listed | GO-2024-2903 |
| Go | github.com/evmos/evmos/v4 | no fix listed | GO-2024-2903 |
| Go | github.com/evmos/evmos/v5 | no fix listed | GO-2024-2903 |
| Go | github.com/evmos/evmos/v6 | no fix listed | GO-2024-2903 |
| Go | github.com/evmos/evmos/v6 | 18.1.0 | GHSA-xgr7-jgq3-mhmc |
| Go | github.com/evmos/evmos/v7 | no fix listed | GO-2024-2903 |
| Go | github.com/evmos/evmos/v7 | 18.1.0 | GHSA-xgr7-jgq3-mhmc |
| Go | github.com/evmos/evmos/v8 | no fix listed | GO-2024-2903 |
| Go | github.com/evmos/evmos/v8 | 18.1.0 | GHSA-xgr7-jgq3-mhmc |
| Go | github.com/evmos/evmos/v9 | 18.1.0 | GHSA-xgr7-jgq3-mhmc |
| Go | github.com/evmos/evmos/v9 | no fix listed | GO-2024-2903 |
Affected products (as reported)
Weakness: CWE-670 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
References
- https://github.com/evmos/evmos/security/advisories/GHSA-xgr7-jgq3-mhmc x_refsource_CONFIRM
- https://github.com/evmos/evmos/commit/478b7a62e7af57a70cf3a01126c7f5a89bee69d7 x_refsource_MISC