Advisory

RUSTSEC-2024-0361

Also known as: GHSA-rg2q-2jh9-447q

Summary

CWA-2024-004: Gas mispricing in cosmwasm-vm

Details

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.

For more information, see CWA-2024-004.

Severity

Not rated by the source.

Dates

Published
2024-08-08 12:00 UTC
Modified
2024-08-08 17:11 UTC

Affected packages and fixes

cosmwasm-vm

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 1.5.7, introduced 2.0.0, fixed 2.0.6, introduced 2.1.0, fixed 2.1.3 (semver)

Fixed versions

1.5.7, 2.0.6, 2.1.3

Fix

  • Fixed version 1.5.7
    cargo update -p cosmwasm-vm --precise 1.5.7
  • Fixed version 2.0.6
    cargo update -p cosmwasm-vm --precise 2.0.6
  • Fixed version 2.1.3
    cargo update -p cosmwasm-vm --precise 2.1.3

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: RustSec Advisory Database · CC0-1.0

Sources & licences