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

High 8.8 Published Updated

Attackers can drain funds from any account by exploiting a logic flaw in vesting account creation that bypasses authorization checks.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-39696?

CVE-2024-39696 is a high-severity vulnerability in evmos, published on 5 Jul 2024. Any signed-in user can exploit it over the network, with no action from the victim.

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

Weakness: CWE-863

Which versions are affected by CVE-2024-39696?

21 open source packages ship an affected version, including github.com/evmos/evmos/v18, github.com/evmos/evmos and github.com/evmos/evmos/v10. It affects 1 product.

PackageAffectedFixed in
github.com/evmos/evmos/v18 GoAll versionsNone
github.com/evmos/evmos/v18 GoAll versions19.0.0
github.com/evmos/evmos/v18 GoAll versions19.0.0
github.com/evmos/evmos GoAll versionsNone
github.com/evmos/evmos/v10 GoAll versionsNone
github.com/evmos/evmos/v11 GoAll versionsNone
15 more packages
github.com/evmos/evmos/v12 GoAll versionsNone
github.com/evmos/evmos/v13 GoAll versionsNone
github.com/evmos/evmos/v14 GoAll versionsNone
github.com/evmos/evmos/v15 GoAll versionsNone
github.com/evmos/evmos/v16 GoAll versionsNone
github.com/evmos/evmos/v17 GoAll versionsNone
github.com/evmos/evmos/v19 GoAll versions19.0.0
github.com/evmos/evmos/v2 GoAll versionsNone
github.com/evmos/evmos/v3 GoAll versionsNone
github.com/evmos/evmos/v4 GoAll versionsNone
github.com/evmos/evmos/v5 GoAll versionsNone
github.com/evmos/evmos/v6 GoAll versionsNone
github.com/evmos/evmos/v7 GoAll versionsNone
github.com/evmos/evmos/v8 GoAll versionsNone
github.com/evmos/evmos/v9 GoAll versionsNone

Products include Evmos Evmos.

How do I fix CVE-2024-39696?

Upgrade github.com/evmos/evmos/v18 to 19.0.0 or later.

Is CVE-2024-39696 being exploited?

There is no known exploitation of CVE-2024-39696 in the wild and no public exploit code.

Sources

Also known as GHSA-q6hg-6m9x-5g9c, GO-2024-2974.

Is CVE-2024-39696 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free