CVE-2024-39696
JSON

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 packageVersionsReported by
evmos evmos< 19.0.0, before 19.0.0CVE List, NVD
github.com/evmos/evmos/v18 (Go)before 19.0.0, all versionsGitHub Advisory Database, Go Vulnerability Database
github.com/evmos/evmos (Go)all versionsGo Vulnerability Database
github.com/evmos/evmos/v2 (Go)all versionsGo Vulnerability Database
github.com/evmos/evmos/v3 (Go)all versionsGo Vulnerability Database
github.com/evmos/evmos/v4 (Go)all versionsGo Vulnerability Database
github.com/evmos/evmos/v5 (Go)all versionsGo Vulnerability Database
github.com/evmos/evmos/v6 (Go)all versionsGo Vulnerability Database
github.com/evmos/evmos/v7 (Go)all versionsGo Vulnerability Database
github.com/evmos/evmos/v8 (Go)all versionsGo Vulnerability Database
github.com/evmos/evmos/v9 (Go)all versionsGo Vulnerability Database
github.com/evmos/evmos/v10 (Go)all versionsGo Vulnerability Database

All scores

GitHub_M8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHub8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H

Classification

CWE-863

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

Sources

SourceRecordLicence
CVE ListCVE-2024-39696 changed 2024-08-02CVE Terms of Use
GitHub Advisory DatabaseGHSA-q6hg-6m9x-5g9c changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2024-2974 changed 2026-03-03CC-BY-4.0
NVDCVE-2024-39696 changed 2026-06-17Public domain