Read the docs
TI-2024-39004 Aliases GHSA-rg2q-2jh9-447q

Gas mispricing in cosmwasm-vm

Priority LOW 38CWE-920Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub.

Summary

**Component:** wasmvm **Criticality:** Medium ([ACMv1](https://github.com/interchainio/security/blob/main/resources/CLASSIFICATION_MATRIX.md): I:Moderate; L:Likely) **Patched versions:** wasmvm 1.5.4, 2.0.3, 2.1.2 Some Wasm operations take significantly more gas than our benchmarks indicated. This can lead to missing the [gas target](https://github.com/CosmWasm/cosmwasm/blob/e50490c4199a234200a497219b27f071c3409f58/docs/GAS.md#cosmwasm-gas-pricing) we defined by a factor of ~10x. This means a malicious contract could take 10 times as much time to execute as expected, which can be used to temporarily DoS a chain. See [CWA-2024-004](https://github.com/CosmWasm/advisories/blob/main/CWAs/CWA-2024-004.md) for more details.

Why it matters now

Fix Fixed cosmwasm-vm (crates.io): 1.5.6, 2.0.5, 2.1.2github.com/CosmWasm/wasmvm/v2 (Go): 2.1.2, 2.0.3+1 more product

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—cosmwasm-vm (crates.io)before 1.5.61.5.6Patch availableGHSA-rg2q-2jh9-447q
—cosmwasm-vm (crates.io)2.0.0 to before 2.0.52.0.5Patch availableGHSA-rg2q-2jh9-447q
—cosmwasm-vm (crates.io)2.1.0 to before 2.1.22.1.2Patch availableGHSA-rg2q-2jh9-447q
—github.com/CosmWasm/wasmvm/v2 (Go)2.1.0 to before 2.1.22.1.2Patch availableGHSA-rg2q-2jh9-447q
—github.com/CosmWasm/wasmvm/v2 (Go)2.0.0 to before 2.0.32.0.3Patch availableGHSA-rg2q-2jh9-447q
—github.com/CosmWasm/wasmvm (Go)before 1.5.41.5.4Patch availableGHSA-rg2q-2jh9-447q
  • cosmwasm-vm (crates.io) Vendor— Affected before 1.5.6 Fixed in 1.5.6 Patch available GHSA-rg2q-2jh9-447q
  • cosmwasm-vm (crates.io) Vendor— Affected 2.0.0 to before 2.0.5 Fixed in 2.0.5 Patch available GHSA-rg2q-2jh9-447q
  • cosmwasm-vm (crates.io) Vendor— Affected 2.1.0 to before 2.1.2 Fixed in 2.1.2 Patch available GHSA-rg2q-2jh9-447q
  • github.com/CosmWasm/wasmvm/v2 (Go) Vendor— Affected 2.1.0 to before 2.1.2 Fixed in 2.1.2 Patch available GHSA-rg2q-2jh9-447q
  • github.com/CosmWasm/wasmvm/v2 (Go) Vendor— Affected 2.0.0 to before 2.0.3 Fixed in 2.0.3 Patch available GHSA-rg2q-2jh9-447q
  • github.com/CosmWasm/wasmvm (Go) Vendor— Affected before 1.5.4 Fixed in 1.5.4 Patch available GHSA-rg2q-2jh9-447q

Remediation

  • Fix · GHSA-rg2q-2jh9-447q cosmwasm-vm (crates.io) Fixed in 1.5.6 Advisory →
  • Fix · GHSA-rg2q-2jh9-447q cosmwasm-vm (crates.io) Fixed in 2.0.5 Advisory →
  • Fix · GHSA-rg2q-2jh9-447q cosmwasm-vm (crates.io) Fixed in 2.1.2 Advisory →
  • Fix · GHSA-rg2q-2jh9-447q github.com/CosmWasm/wasmvm/v2 (Go) Fixed in 2.1.2 Advisory →
  • Fix · GHSA-rg2q-2jh9-447q github.com/CosmWasm/wasmvm/v2 (Go) Fixed in 2.0.3 Advisory →
  • Fix · GHSA-rg2q-2jh9-447q github.com/CosmWasm/wasmvm (Go) Fixed in 1.5.4 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-rg2q-2jh9-447q

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences