# RUSTSEC-2024-0361: Some Wasm operations take significantly more gas than our benchmarks indicated

- Database: RustSec
- Published: 2024-08-08
- Modified: 2024-08-08

## Also published as

- [GHSA-RG2Q-2JH9-447Q](https://cve.now/GHSA-RG2Q-2JH9-447Q.md) (GitHub)

## Affected versions

- cosmwasm-vm (crates.io): fixed in 1.5.7; from 2.0.0, fixed in 2.0.6; from 2.1.0, fixed in 2.1.3

## Description

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](https://github.com/CosmWasm/advisories/blob/main/CWAs/CWA-2024-004.md).

## References

- https://crates.io/crates/cosmwasm-vm
- https://rustsec.org/advisories/RUSTSEC-2024-0361.html
- https://github.com/CosmWasm/advisories/blob/main/CWAs/CWA-2024-004.md

Page: https://cve.now/RUSTSEC-2024-0361

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
