Gas mispricing in cosmwasm-vm

Severity: low · CVSS 3.1 · Published 2024-08-08

Gas mispricing in cosmwasm-vm

Technologies: cosmwasm-vm (crates.io), github.com/CosmWasm/wasmvm (Go), github.com/CosmWasm/wasmvm/v2 (Go). Vendors: crates.io, Go.

Quick answers

Is This vulnerability exploited in the wild?
No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.
How severe is This vulnerability?
Low severity, with a CVSS score of 3.1, published 8 August 2024.
Which products and versions are affected?
cosmwasm-vm (crates.io) SEMVER:introduced=0,fixed=1.5.6; github.com/CosmWasm/wasmvm (Go) SEMVER:introduced=0,fixed=1.5.4; github.com/CosmWasm/wasmvm/v2 (Go) SEMVER:introduced=2.1.0,fixed=2.1.2.
Is there a fix for This vulnerability?
Yes. cosmwasm-vm (crates.io): upgrade to 1.5.6 or later; github.com/CosmWasm/wasmvm (Go): upgrade to 1.5.4 or later; github.com/CosmWasm/wasmvm/v2 (Go): upgrade to 2.1.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected?
Check whether you run cosmwasm-vm (crates.io), github.com/CosmWasm/wasmvm (Go) or github.com/CosmWasm/wasmvm/v2 (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • cosmwasm-vm (crates.io): upgrade to 1.5.6 or later
    cargo update -p cosmwasm-vm
  • github.com/CosmWasm/wasmvm (Go): upgrade to 1.5.4 or later
    go get github.com/CosmWasm/wasmvm@v1.5.4
  • github.com/CosmWasm/wasmvm/v2 (Go): upgrade to 2.1.2 or later
    go get github.com/CosmWasm/wasmvm/v2@v2.1.2

Affected products

  • cosmwasm-vm (crates.io) SEMVER:introduced=0,fixed=1.5.6
  • github.com/CosmWasm/wasmvm (Go) SEMVER:introduced=0,fixed=1.5.4
  • github.com/CosmWasm/wasmvm/v2 (Go) SEMVER:introduced=2.1.0,fixed=2.1.2

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.