Vulnerability DatabaseGHSA-7225-m954-23v7

GHSA-7225-m954-23v7
vulnerability analysis and mitigation

Overview

The vulnerability (GHSA-7225-m954-23v7) affects the cosmossdk.io/math package versions 1.3.0 and below, discovered on October 31, 2024. This high-severity issue involves mismatched bit-length validation between sdk.Int and sdk.Dec types, which can lead to panic conditions when interacting with Dec types in an Int context (GitHub Advisory).

Technical details

The vulnerability stems from misaligned bit-length validations between sdk.Int and sdk.Dec data types in the cosmossdk.io/math package. The issue has been assigned a CVSS v4.0 score of 8.7 (High) with a vector string of CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N. The vulnerability is classified under CWE-190 and primarily affects the availability of the system while having no impact on confidentiality or integrity (GitHub Advisory).

Impact

This vulnerability impacts consumers of the cosmossdk.io/math package, including popular modules such as IBC-Go and tokenfactory (permissionless). When exploited, it can cause panic conditions in systems that interact with the package's APIs or utilize modules consuming this library (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in cosmossdk.io/math v1.4.0. Users are advised to update their project's go.mod dependency from v1.3.0 to v1.4.0. For users on versions lower than v1.3.0, a coordinated upgrade is recommended before upgrading to v1.4.0 or higher. The patch can be applied without requiring a hard-fork (GitHub 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