NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Rust (crates.io)

GHSA-rg2q-2jh9-447q: Gas mispricing in cosmwasm-vm

mediumCVSS 4.0 5.3 · 3.1 4.3

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.

Published Aug 8, 2024

Affected packages

cosmwasm-vm

Ecosystem
Rust (crates.io)
Affected
< 1.5.6
Fixed in
1.5.6
Check
cargo tree -i cosmwasm-vm

cosmwasm-vm

Ecosystem
Rust (crates.io)
Affected
>= 2.0.0, < 2.0.5
Fixed in
2.0.5
Check
cargo tree -i cosmwasm-vm

cosmwasm-vm

Ecosystem
Rust (crates.io)
Affected
>= 2.1.0, < 2.1.2
Fixed in
2.1.2
Check
cargo tree -i cosmwasm-vm

github.com/CosmWasm/wasmvm/v2

Ecosystem
Go
Affected
>= 2.1.0, < 2.1.2
Fixed in
2.1.2
Check
go list -m github.com/CosmWasm/wasmvm/v2

github.com/CosmWasm/wasmvm/v2

Ecosystem
Go
Affected
>= 2.0.0, < 2.0.3
Fixed in
2.0.3
Check
go list -m github.com/CosmWasm/wasmvm/v2

github.com/CosmWasm/wasmvm

Ecosystem
Go
Affected
< 1.5.4
Fixed in
1.5.4
Check
go list -m github.com/CosmWasm/wasmvm

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to unknownfeature.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Rust (crates.io) vulnerabilities

All Rust (crates.io) entries