Email me

Rust advisories / cosmwasm-vm

Vulnerability MediumRUSTSEC-2024-0361 · cosmwasm-vm

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

Short answerA security vulnerability in the cosmwasm-vm crate: CWA-2024-004: Gas mispricing in cosmwasm-vm. GitHub rates it Medium. Fixed in 1.5.7, 2.0.6, 2.1.3: update to a fixed version.

Cratecosmwasm-vm
TypeVulnerability (denial-of-service)
Affected versionsBefore 1.5.7; from 2.0.0 before 2.0.6; from 2.1.0 before 2.1.3.
Fixed in1.5.7, 2.0.6, 2.1.3
SeverityMedium (GitHub rating)
Published2024-08-08
Last changed2024-08-08
Also known asGHSA-rg2q-2jh9-447q

What to do

  1. See which version you have: cargo tree -i cosmwasm-vm (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p cosmwasm-vm. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example cosmwasm-vm = "2.1.3") or update the dependency that pulls it in.
  3. Check again with cargo audit, or paste your Cargo.lock into our Cargo.toml checker.

Details from the advisory

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.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Other advisories for cosmwasm-vm

Full security history of cosmwasm-vm

Up next

Same cratecosmwasm-vm: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ