github.com/CosmWasm/wasmd
Affected
- introduced
0.60.0, fixed0.60.1(semver)
Fixed versions
0.60.1
Fix
- Fixed version
0.60.1go get github.com/CosmWasm/[email protected]
Advisory
Also known as: GO-2025-3755
CWA-2025-006: wasmd's improper error handling may lead to IBC channel opening despite error
CWA-2025-006: Improper error handling may lead to IBC channel opening despite error
Severity
High (Considerable + Likely)[^1]
Affected versions:
Patched versions:
Description of the bug
A contract erroring during IBC channel opening does not prevent the channel from opening.
Applying the patch
The patch will be shipped in a wasmd release. You will also have to update libwasmvm if you build statically.
If you already use the latest / close to latest wasmd, you can update more or less as follows:
go list -m github.com/CosmWasm/wasmdgithub.com/CosmWasm/wasmd dependency in your go.mod to 0.60.1 (Cosmos SDK 0.53 compatible), 0.55.1 (Cosmos SDK 0.50 compatible), 0.54.1 or 0.53.3; go mod tidy; commit.libwasmvm_muslc.aarch64.a/libwasmvm_muslc.x86_64.a, make sure that you use the same version as your wasmvm version.go list -m github.com/CosmWasm/wasmd and ensure you see 0.60.1, 0.55.1, 0.54.1 or 0.53.3.The patch is consensus breaking.
Acknowledgement
This problem was discovered during an audit of the CosmWasm stack performed by Sherlock and funded by ICF/ICL in Q1 2025. Thank you for that work!
If you believe you have found a bug in the Interchain Stack or would like to contribute to the
program by reporting a bug, please see https://hackerone.com/cosmos.
Timeline
[^1]: following Amulet's Severity Classification Framework ACMv1.2: https://github.com/interchainio/security/blob/0295254e8645301ccb606d46108a45cede0a73e0/resources/CLASSIFICATION_MATRIX.md
High Basis: The source's own band: HIGH
0.60.0, fixed 0.60.1 (semver)0.60.1
0.60.1go get github.com/CosmWasm/[email protected]0.55.0, fixed 0.55.1 (semver)0.55.1
0.55.1go get github.com/CosmWasm/[email protected]0.54.0, fixed 0.54.1 (semver)0.54.1
0.54.1go get github.com/CosmWasm/[email protected]0.51.0, fixed 0.53.3 (semver)0.53.3
0.53.3go get github.com/CosmWasm/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0