GHSA-m3rh-cvr5-x6q4 CosmWasm wasmd has large address count in ValidateBasic

Not scored Published

An attacker can cause resource exhaustion and denial of service by submitting messages with excessive address counts to wasmd nodes.

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 GHSA-m3rh-cvr5-x6q4?

GHSA-m3rh-cvr5-x6q4 is a denial of service vulnerability in github.com/CosmWasm/wasmd, published on 8 Aug 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Component: wasmd Criticality: Low (ACMv1: I:Moderate; L:Unlikely) Patched versions: wasmd 0.52.0

In multiple wasmd message types it was possible to add a large number of addresses which might lead to unexpected resource consumption in ValidateBasic.

See CWA-2024-003 for more details.

Which versions are affected by GHSA-m3rh-cvr5-x6q4?

3 open source packages ship an affected version, including github.com/CosmWasm/wasmd.

PackageAffectedFixed in
github.com/CosmWasm/wasmd GoAll versions0.52.0
github.com/CosmWasm/wasmd GoAll versions0.52.0
github.com/CosmWasm/wasmd GoAll versions0.52.0

How do I fix GHSA-m3rh-cvr5-x6q4?

Upgrade github.com/CosmWasm/wasmd to 0.52.0 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is GHSA-m3rh-cvr5-x6q4 being exploited?

There is no known exploitation of GHSA-m3rh-cvr5-x6q4 in the wild and no public exploit code.

Sources

Also known as GO-2024-3059.

Is GHSA-m3rh-cvr5-x6q4 in your software?

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

Check your SBOMs for free