GHSA-rg2q-2jh9-447q

Suggest an improvement
Source
https://github.com/advisories/GHSA-rg2q-2jh9-447q
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/08/GHSA-rg2q-2jh9-447q/GHSA-rg2q-2jh9-447q.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-rg2q-2jh9-447q
Aliases
Published
2024-08-08T16:30:50Z
Modified
2024-08-08T17:03:07Z
Severity
  • 4.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
  • 5.3 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
Gas mispricing in cosmwasm-vm
Details

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.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-920"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2024-08-08T16:30:50Z"
}
References

Affected packages

crates.io / cosmwasm-vm

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.5.6

crates.io / cosmwasm-vm

Package

Affected ranges

Type
SEMVER
Events
Introduced
2.0.0
Fixed
2.0.5

crates.io / cosmwasm-vm

Package

Affected ranges

Type
SEMVER
Events
Introduced
2.1.0
Fixed
2.1.2

Go / github.com/CosmWasm/wasmvm/v2

Package

Name
github.com/CosmWasm/wasmvm/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/CosmWasm/wasmvm/v2

Affected ranges

Type
SEMVER
Events
Introduced
2.1.0
Fixed
2.1.2

Go / github.com/CosmWasm/wasmvm/v2

Package

Name
github.com/CosmWasm/wasmvm/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/CosmWasm/wasmvm/v2

Affected ranges

Type
SEMVER
Events
Introduced
2.0.0
Fixed
2.0.3

Go / github.com/CosmWasm/wasmvm

Package

Name
github.com/CosmWasm/wasmvm
View open source insights on deps.dev
Purl
pkg:golang/github.com/CosmWasm/wasmvm

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.5.4