{"id":"CVE-2024-39696","aliases":["CVE-2024-39696","GHSA-q6hg-6m9x-5g9c","GO-2024-2974"],"related":[],"kind":"vulnerability","state":"published","title":"Evmos vulnerable to exploit of smart contract account and vesting","summary":"Evmos is a decentralized Ethereum Virtual Machine chain on the Cosmos Network. Prior to version 19.0.0, a user can create a vesting account with a 3rd party account (EOA or contract) as funder. Then, this user can create an authorization for the contract.CallerAddress, this is the authorization checked in the code. But the funds are taken from the funder address provided in the message. Consequently, the user can fund a vesting account with a 3rd party account without its permission. The funder address can be any address, so this vulnerability can be used to drain all the accounts in the chain. The issue has been patched in version 19.0.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Evmos is a decentralized Ethereum Virtual Machine chain on the Cosmos Network. Prior to version 19.0.0, a user can create a vesting account with a 3rd party account (EOA or contract) as funder. Then, this user can create an authorization for the contract.CallerAddress, this is the authorization checked in the code. But the funds are taken from the funder address provided in the message. Consequently, the user can fund a vesting account with a 3rd party account without its permission. The funder address can be any address, so this vulnerability can be used to drain all the accounts in the chain. The issue has been patched in version 19.0.0.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nThis advisory board aims to describe two vulnerabilities found in the Evmos codebase:\n\n- _Authorization check on the fundVestingAccount_: unauthorized spend of funds.\n\n### Details\n\n#### Authorization check on the fundVestingAccount\n\nWith the current implementation, a user can create a vesting account with a 3rd party account (EOA or contract) as funder. Then, this user can create an authorization for the contract.CallerAddress, this is the authorization checked in the code. But the funds are taken from the funder address provided in the message. Consequently, the user can fund a vesting account with a 3rd party account without its permission. The funder address can be any address, so this vulnerability can be used to drain all the accounts in the chain.\n\n### Severity\nBased on [ImmuneFi Severity Classification System](https://immunefisupport.zendesk.com/hc/en-us/articles/13332717597585-Severity-Classification-System) the severity was evaluated to Critical since the attack could have lead to direct loss of funds.\n\n### Patches\nThe issue has been patched in versions >=V19.0.0","format":"markdown","source":"ghsa"},{"lang":"en","text":"Evmos vulnerable to exploit of smart contract account and vesting in github.com/evmos/evmos","format":"markdown","source":"go"},{"lang":"es","text":"Evmos es una cadena descentralizada de máquinas virtuales Ethereum en Cosmos Network. Antes de la versión 19.0.0, un usuario puede crear una cuenta de adquisición de derechos con una cuenta de un tercero (EOA o contrato) como financiador. Luego, este usuario puede crear una autorización para el contrato.CallerAddress, esta es la autorización marcada en el código. Pero los fondos se toman de la dirección del financiador proporcionada en el mensaje. En consecuencia, el usuario puede depositar fondos en una cuenta de adquisición de derechos con una cuenta de terceros sin su permiso. La dirección del financiador puede ser cualquier dirección, por lo que esta vulnerabilidad se puede utilizar para vaciar todas las cuentas de la cadena. El problema se solucionó en la versión 19.0.0.","source":"nvd"}],"published":"2024-07-05T18:49:22.153Z","modified":"2026-09-10T03:50:16.801Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":8.1,"rating":"HIGH"}],"cwes":["CWE-863"],"affected":[{"ranges":[{"version":"< 19.0.0","status":"affected"}],"vendor":"evmos","product":"evmos","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"19.0.0","status":"affected"}],"vendor":"evmos","product":"evmos","cpe":"cpe:2.3:a:evmos:evmos:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"19.0.0"}],"ecosystem":"Go","package":"github.com/evmos/evmos/v18","purl":"pkg:golang/github.com/evmos/evmos/v18","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/evmos/evmos","purl":"pkg:golang/github.com/evmos/evmos","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/evmos/evmos/v2","purl":"pkg:golang/github.com/evmos/evmos/v2","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/evmos/evmos/v3","purl":"pkg:golang/github.com/evmos/evmos/v3","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/evmos/evmos/v4","purl":"pkg:golang/github.com/evmos/evmos/v4","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/evmos/evmos/v5","purl":"pkg:golang/github.com/evmos/evmos/v5","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/evmos/evmos/v6","purl":"pkg:golang/github.com/evmos/evmos/v6","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/evmos/evmos/v7","purl":"pkg:golang/github.com/evmos/evmos/v7","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/evmos/evmos/v8","purl":"pkg:golang/github.com/evmos/evmos/v8","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/evmos/evmos/v9","purl":"pkg:golang/github.com/evmos/evmos/v9","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/evmos/evmos/v10","purl":"pkg:golang/github.com/evmos/evmos/v10","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/evmos/evmos/v11","purl":"pkg:golang/github.com/evmos/evmos/v11","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/evmos/evmos/v12","purl":"pkg:golang/github.com/evmos/evmos/v12","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/evmos/evmos/v13","purl":"pkg:golang/github.com/evmos/evmos/v13","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/evmos/evmos/v14","purl":"pkg:golang/github.com/evmos/evmos/v14","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/evmos/evmos/v15","purl":"pkg:golang/github.com/evmos/evmos/v15","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/evmos/evmos/v16","purl":"pkg:golang/github.com/evmos/evmos/v16","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/evmos/evmos/v17","purl":"pkg:golang/github.com/evmos/evmos/v17","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/evmos/evmos/v18","purl":"pkg:golang/github.com/evmos/evmos/v18","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"19.0.0"}],"ecosystem":"Go","package":"github.com/evmos/evmos/v19","purl":"pkg:golang/github.com/evmos/evmos/v19","source":"go"},{"ranges":[{"status":"affected","fixed":"19.0.0"}],"vendor":"evmos","product":"evmos","cpe":"cpe:2.3:a:evmos:evmos:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/evmos/evmos/security/advisories/GHSA-q6hg-6m9x-5g9c","tags":["advisory","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/evmos/evmos/commit/0a620e176617a835ac697eea494afea09185dfaf","tags":["fix","patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39696","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/evmos/evmos","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-07-07T13:57:09.223Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-39696","url":"https://www.cve.org/CVERecord?id=CVE-2024-39696","licence":"CVE Terms of Use","modified":"2024-08-02T04:26:15.993Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q6hg-6m9x-5g9c","url":"https://github.com/advisories/GHSA-q6hg-6m9x-5g9c","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:16.801Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-2974","url":"https://pkg.go.dev/vuln/GO-2024-2974","licence":"CC-BY-4.0","modified":"2026-03-03T04:51:54.442Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-39696","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39696","licence":"Public domain","modified":"2026-06-17T07:42:29.347Z"}],"updatedAt":"2026-11-25T22:58:42.537Z","epss":{"score":0.00523,"percentile":0.45821,"date":"2026-12-01T12:00:22.000Z"}}