Advisory

RUSTSEC-2024-0366

Also known as: GHSA-75qh-gg76-p2w4, GO-2024-3101

Summary

CWA-2023-004: Excessive number of function parameters in compiled Wasm

Details

A specifically crafted Wasm file can cause the VM to consume excessive amounts of memory when compiling a contract.
This can lead to high memory usage, slowdowns, potentially a crash and can poison a lock in the VM,
preventing any further interaction with contracts.

For more information, see CWA-2023-004.

Severity

Not rated by the source.

Dates

Published
2024-08-27 12:00 UTC
Modified
2025-10-28 06:29 UTC

Affected packages and fixes

cosmwasm-vm

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 1.2.8, introduced 1.3.0, fixed 1.3.4, introduced 1.4.0, fixed 1.4.2, introduced 1.5.0, fixed 1.5.1 (semver)

Fixed versions

1.2.8, 1.3.4, 1.4.2, 1.5.1

Fix

  • Fixed version 1.2.8
    cargo update -p cosmwasm-vm --precise 1.2.8
  • Fixed version 1.3.4
    cargo update -p cosmwasm-vm --precise 1.3.4
  • Fixed version 1.4.2
    cargo update -p cosmwasm-vm --precise 1.4.2
  • Fixed version 1.5.1
    cargo update -p cosmwasm-vm --precise 1.5.1

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