8.8high
Evmos vulnerable to exploit of smart contract account and vesting
- Severity
- 8.8high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.77% (higher than 52% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-q6hg-6m9x-5g9cGO-2024-2974
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| evmos evmos | < 19.0.0, before 19.0.0 | CVE List, NVD |
| github.com/evmos/evmos/v18 (Go) | before 19.0.0, all versions | GitHub Advisory Database, Go Vulnerability Database |
| github.com/evmos/evmos (Go) | all versions | Go Vulnerability Database |
| github.com/evmos/evmos/v2 (Go) | all versions | Go Vulnerability Database |
| github.com/evmos/evmos/v3 (Go) | all versions | Go Vulnerability Database |
| github.com/evmos/evmos/v4 (Go) | all versions | Go Vulnerability Database |
| github.com/evmos/evmos/v5 (Go) | all versions | Go Vulnerability Database |
| github.com/evmos/evmos/v6 (Go) | all versions | Go Vulnerability Database |
| github.com/evmos/evmos/v7 (Go) | all versions | Go Vulnerability Database |
| github.com/evmos/evmos/v8 (Go) | all versions | Go Vulnerability Database |
| github.com/evmos/evmos/v9 (Go) | all versions | Go Vulnerability Database |
| github.com/evmos/evmos/v10 (Go) | all versions | Go Vulnerability Database |
| github.com/evmos/evmos/v11 (Go) | all versions | Go Vulnerability Database |
| github.com/evmos/evmos/v12 (Go) | all versions | Go Vulnerability Database |
| github.com/evmos/evmos/v13 (Go) | all versions | Go Vulnerability Database |
| github.com/evmos/evmos/v14 (Go) | all versions | Go Vulnerability Database |
| github.com/evmos/evmos/v15 (Go) | all versions | Go Vulnerability Database |
| github.com/evmos/evmos/v16 (Go) | all versions | Go Vulnerability Database |
| github.com/evmos/evmos/v17 (Go) | all versions | Go Vulnerability Database |
| github.com/evmos/evmos/v19 (Go) | before 19.0.0 | Go Vulnerability Database |
All scores
| GitHub_M | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | high CVSS:4.0 | 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 |
| NVD | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
GitHub Advisory Database
Summary
This advisory board aims to describe two vulnerabilities found in the Evmos codebase:
- Authorization check on the fundVestingAccount: unauthorized spend of funds.
Details
Authorization check on the fundVestingAccount
With 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.
Severity
Based on ImmuneFi Severity Classification System the severity was evaluated to Critical since the attack could have lead to direct loss of funds.
Patches
The issue has been patched in versions >=V19.0.0
Go Vulnerability Database
Evmos vulnerable to exploit of smart contract account and vesting in github.com/evmos/evmos
NVD (es)
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.
References
| https://github.com/evmos/evmos/security/advisories/GHSA-q6hg-6m9x-5g9c | advisory, vendor-advisory, web | |
| https://github.com/evmos/evmos/commit/0a620e176617a835ac697eea494afea09185dfaf | fix, patch, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-39696 | advisory | |
| https://github.com/evmos/evmos | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-39696 changed 2024-08-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-q6hg-6m9x-5g9c changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2024-2974 changed 2026-03-03 | CC-BY-4.0 |
| NVD | CVE-2024-39696 changed 2026-06-17 | Public domain |