Vulnerability DatabaseGHSA-m3rh-cvr5-x6q4

GHSA-m3rh-cvr5-x6q4
vulnerability analysis and mitigation

Overview

A low severity vulnerability (GHSA-m3rh-cvr5-x6q4) was discovered in wasmd versions prior to 0.52.0, affecting multiple message types where it was possible to add a large number of addresses leading to unexpected resource consumption in ValidateBasic. The vulnerability was discovered by Richie and reported through the Cosmos Bug Bounty Program on HackerOne (CosmWasm Advisory).

Technical details

The vulnerability affects multiple wasmd message types that call assertValidAddresses via AccessConfig.ValidateBasic() to ensure address format and uniqueness. An attacker could provide numerous addresses in AccessConfig.Addresses and specify AccessConfig.Permission as AccessTypeAnyOfAddresses. The affected message types include MsgStoreAndInstantiateContract, MsgStoreAndMigrateContract, MsgStoreCode, MsgUpdateInstantiateConfig, MsgUpdateParams, MsgAddCodeUploadParamsAddresses, and MsgRemoveCodeUploadParamsAddresses. The number of addresses a malicious actor can insert is limited by the gas charged for transaction sizes and the block size limit (CosmWasm Advisory).

Impact

The vulnerability could lead to large memory consumption in the map, increased address validation efforts, and a slowdown of map operations. The severity is classified as Low with Moderate impact and Unlikely likelihood according to Amulet's Severity Classification Framework (GitHub Advisory).

Exploitability

The vulnerability has a CVSS v4.0 base score of 6.3 (Moderate) with Network attack vector, High attack complexity, and No privileges required for exploitation (GitHub Advisory).

Mitigation and workarounds

The vulnerability was patched in wasmd version 0.52.0 by implementing a new unified validateBech32Addresses function that replaces assertValidAddresses and checkDuplicatedAddresses. The patch includes checks for minimum and maximum element count, address validity, and uniqueness. Users should upgrade to wasmd 0.52.0 or higher, or alternatively backport the patch from CosmWasm/wasmd#1926 (CosmWasm Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management