Incorrect Calculation Affecting github.com/cosmwasm/wasmvm/v2 package, versions >=2.0.0 <2.0.4>=2.1.0 <2.1.3


Severity

Recommended
0.0
medium
0
10

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

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-GITHUBCOMCOSMWASMWASMVMV2-8496401
  • published11 Dec 2024
  • disclosed10 Dec 2024
  • creditmeadow101

Introduced: 10 Dec 2024

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

How to fix?

Upgrade github.com/CosmWasm/wasmvm/v2 to version 2.0.4, 2.1.3 or higher.

Overview

Affected versions of this package are vulnerable to Incorrect Calculation due to incorrect metering logic. An attacker can manipulate the execution of smart contracts by exploiting the flawed metering mechanism which fails to accurately account for resource consumption.

CVSS Scores

version 4.0
version 3.1