Integer Overflow or Wraparound Affecting cosmossdk.io/math package, versions <1.4.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-COSMOSSDKIOMATH-8400291
  • published21 Nov 2024
  • disclosed20 Nov 2024
  • creditUnknown

Introduced: 20 Nov 2024

New CVE NOT AVAILABLE CWE-190  (opens in a new tab)

How to fix?

Upgrade cosmossdk.io/math to version 1.4.0 or higher.

Overview

Affected versions of this package are vulnerable to Integer Overflow or Wraparound due to the misalignment of bit-length validation between sdk.Int and sdk.Dec.

References

CVSS Scores

version 4.0
version 3.1