{"id":"CVE-2024-32873","aliases":["CVE-2024-37158","CVE-2024-37159","GHSA-pxv8-qhrh-jc7v","GO-2024-2891","GO-2024-2926","GO-2024-2927"],"url":"https://o3.security/vulnerability/CVE-2024-32873","summary":"evmos allows transferring unvested tokens after delegations","details":"## Impact\n\nThis advisory has been created to address the following vulnerabilities found in the Evmos codebase and affecting vesting accounts.\n\n### Wrong spendable balance computation\n\nThe spendable balance is not updated properly when delegating vested tokens. The following example help in describing the issue:\n- Given a clawback vesting account with a starting `15M` vesting schedule. The initial spendable balance is `0`.\n- Time passes and `5M` are vested. The spendable balance is now `5M`.\n- The account delegate `5M`. The spendable balance should be `0`, but returns `5M`\n- The account can send `5M` to another account.\n\nThe issue allowed a clawback vesting account to anticipate the release of unvested tokens.\n\n### Missing precompile checks\n\nPreliminary checks on actions computed by the clawback vesting accounts are performed in the ante handler. Evmos core, implements two different ante handlers: one for Cosmos transactions and one for Ethereum transactions. Checks performed on the two implementation are different.\n\nThe vulnerability discovered allowed a clawback account to bypass Cosmos ante handler checks by sending an Ethereum transaction targeting a precompile used to interact with a Cosmos SDK module.\n\n### Missing create validator check\n\nThis vulnerability allowed a user to create a validator using vested tokens to deposit the self-bond.\n\n## Patches\n\n- The spendable balance function has been fixed correcting the `TrackDelegation` function.\n- The checks for the staking module, for the delegation and the create validator, has been moved into the `MsgServer` of a wrapper around the Cosmos SDK staking module. \n\nThe issues have been patched in versions >=V18.0.0.\n\n## References\n1. [Evmos vesting module](https://docs.evmos.org/protocol/modules/vesting)\n\n## For more information\nIf you have any questions or comments about this advisory:\n\nReach out to the Core Team in [Discord](https://discord.gg/evmos)\nOpen a discussion in [evmos/evmos](https://github.com/evmos/evmos/discussions)\nEmail us at [security@evmos.org](mailto:security@evmos.org) for security questions","published":"2024-06-06T18:13:54.267Z","modified":"2026-08-12T03:51:14.183811690Z","cvss":{"score":3.5,"severity":"LOW","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/evmos/evmos/v17","fixedVersion":"18.0.0"},{"ecosystem":"Go","name":"github.com/evmos/evmos/v16","fixedVersion":"18.0.0"},{"ecosystem":"Go","name":"github.com/evmos/evmos/v15","fixedVersion":"18.0.0"},{"ecosystem":"Go","name":"github.com/evmos/evmos/v14","fixedVersion":"18.0.0"},{"ecosystem":"Go","name":"github.com/evmos/evmos/v13","fixedVersion":"18.0.0"},{"ecosystem":"Go","name":"github.com/evmos/evmos/v12","fixedVersion":"18.0.0"},{"ecosystem":"Go","name":"github.com/evmos/evmos/v11","fixedVersion":"18.0.0"},{"ecosystem":"Go","name":"github.com/evmos/evmos/v10","fixedVersion":"18.0.0"},{"ecosystem":"Go","name":"github.com/evmos/evmos/v9","fixedVersion":"18.0.0"},{"ecosystem":"Go","name":"github.com/evmos/evmos/v8","fixedVersion":"18.0.0"},{"ecosystem":"Go","name":"github.com/evmos/evmos/v7","fixedVersion":"18.0.0"},{"ecosystem":"Go","name":"github.com/evmos/evmos/v6","fixedVersion":"18.0.0"}],"fix":{"url":"https://github.com/evmos/evmos/commit/b2a09ca66613d8b04decd3f2dcba8e1e77709dcb","label":"evmos/evmos@b2a09ca"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/32xxx/CVE-2024-32873.json"},{"type":"ADVISORY","url":"https://github.com/evmos/evmos/security/advisories/GHSA-pxv8-qhrh-jc7v"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-32873"},{"type":"FIX","url":"https://github.com/evmos/evmos/commit/b2a09ca66613d8b04decd3f2dcba8e1e77709dcb"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-37158"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-37159"},{"type":"PACKAGE","url":"https://github.com/evmos/evmos"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2024-2891"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:14.183811690Z"}}