Advisory

GHSA-rg2q-2jh9-447q

Also known as: RUSTSEC-2024-0361

Summary

Gas mispricing in cosmwasm-vm

Details

Component: wasmvm
Criticality: Medium (ACMv1: 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 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 for more details.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-08-08 16:30 UTC
Modified
2024-08-08 17:03 UTC

Affected packages and fixes

cosmwasm-vm

crates.io · All systems

Affected

  • introduced 0, fixed 1.5.6 (semver)

Fixed versions

1.5.6

Fix

  • Fixed version 1.5.6
    cargo update -p cosmwasm-vm --precise 1.5.6

cosmwasm-vm

crates.io · All systems

Affected

  • introduced 2.0.0, fixed 2.0.5 (semver)

Fixed versions

2.0.5

Fix

  • Fixed version 2.0.5
    cargo update -p cosmwasm-vm --precise 2.0.5

cosmwasm-vm

crates.io · All systems

Affected

  • introduced 2.1.0, fixed 2.1.2 (semver)

Fixed versions

2.1.2

Fix

  • Fixed version 2.1.2
    cargo update -p cosmwasm-vm --precise 2.1.2

github.com/CosmWasm/wasmvm/v2

Go · All systems

Affected

  • introduced 2.1.0, fixed 2.1.2 (semver)

Fixed versions

2.1.2

Fix

github.com/CosmWasm/wasmvm/v2

Go · All systems

Affected

  • introduced 2.0.0, fixed 2.0.3 (semver)

Fixed versions

2.0.3

Fix

github.com/CosmWasm/wasmvm

Go · All systems

Affected

  • introduced 0, fixed 1.5.4 (semver)

Fixed versions

1.5.4

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences