GHSA-rg2q-2jh9-447q
JSON

medium

Gas mispricing in cosmwasm-vm

Severity
medium CVSS:4.0 by GitHub
Published
Last changed
Also known as
RUSTSEC-2024-0361

Description

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.

Affected

Product or packageVersionsReported by
cosmwasm-vm (crates.io)before 1.5.6, from 2.0.0 before 2.0.5, from 2.1.0 before 2.1.2, from 0.0.0-0 before 1.5.7, from 2.0.0 before 2.0.6, from 2.1.0 before 2.1.3GitHub Advisory Database, RustSec Advisory Database
github.com/CosmWasm/wasmvm/v2 (Go)from 2.1.0 before 2.1.2, from 2.0.0 before 2.0.3GitHub Advisory Database
github.com/CosmWasm/wasmvm (Go)before 1.5.4GitHub Advisory Database

All scores

GitHub4.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Classification

What each source says

GitHub Advisory Database

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.

RustSec Advisory Database

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

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-rg2q-2jh9-447q changed 2024-08-08CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2024-0361 changed 2024-08-08CC0-1.0