Security mailing lists by PureSourceCode

RUSTSEC-2024-0361

MEDIUM 4.3CVSS 3.1

Gas mispricing in cosmwasm-vm

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.

Published
8 Aug 2024
Last modified
8 Aug 2024
Weakness
CWE-920
Also known as
GHSA-rg2q-2jh9-447q
Sources
OSV GHSA-rg2q-2jh9-447qJSONOSVJSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
OSV GitHub CVSS 3.1 MEDIUM 4.3 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV crates.io cosmwasm-vm < 1.5.6 1.5.6
OSV crates.io cosmwasm-vm >= 2.0.0, < 2.0.5 2.0.5
OSV crates.io cosmwasm-vm >= 2.1.0, < 2.1.2 2.1.2
OSV Go github.com/CosmWasm/wasmvm/v2 >= 2.1.0, < 2.1.2 2.1.2
OSV Go github.com/CosmWasm/wasmvm/v2 >= 2.0.0, < 2.0.3 2.0.3
OSV Go github.com/CosmWasm/wasmvm < 1.5.4 1.5.4
OSV crates.io cosmwasm-vm >= 0.0.0-0, < 1.5.7; >= 2.0.0, < 2.0.6; >= 2.1.0, < 2.1.3 1.5.7, 2.0.6, 2.1.3

References

History

  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 8 Aug 2024)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 8 Aug 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.