Skip to content
Cosmopediaby Unity Nodes
DiscussionsSecurityUpcoming CosmWasm security patch: Codename CherryForum ↗

Upcoming CosmWasm security patch: Codename Cherry

Security6 posts1,749 views19 likesLast activity Jun 2023
SI
simon_wartaOP
Apr 2023 12

Tomorrow, on Tuesday, April 18th at 17:00 Berlin time (15h UTC/ 8am Pacific Time) Confio will release a fix for a medium severity security issue in CosmWasm. The patch for this issue will be distributed and communicated via the regular CosmWasm release process.

This issue impacts the availability of a chain running CosmWasm, and could allow for a malicious contract to trigger a crash that can halt the chain. Though chains that use CosmWasm with permissioned uploads or instantiation are not directly at risk, we advise chains that support permissionless contract instantiation to be prepared to apply the patch and to coordinate network upgrades as quickly as their processes allow to fully remediate the issue.

The patch is not a consensus breaking security fix and can be applied in-place, and instructions will be provided to all maintainers tomorrow as part of the release process. We anticipate that the patch will be a simple, straightforward fix for chain maintainers as it is a matter of replacing one Go dependency and rebuilding the application.

The incident is tracked as CWA-2023-002, codename Cherry :cherries:.

JA
jacobgadikian
Apr 2023 1

Thank you very much both for the patch, and for the disclosure of the patch.

SI
simon_warta
Apr 2023 2

See advisories/CWA-2023-002.md at main · CosmWasm/advisories · GitHub for how to upgrade.

wasmvm 1.2.3 is ready: Release v1.2.3 · CosmWasm/wasmvm · GitHub
wasmvm 1.1.2 is ready: Release v1.1.2 · CosmWasm/wasmvm · GitHub
wasmvm 1.0.1 is ready: Release v1.0.1 · CosmWasm/wasmvm · GitHub

The other ones are built right now.

SI
simon_warta
Apr 2023 2

If someone if hitting segmentation faults after applying the patch, please note this: Add section "Wasm module cache issue" · CosmWasm/advisories@9832abb · GitHub

SI
simon_warta
Jun 2023 1

A description of the vulnerability was added to CWA-2023-002. Also check out the detailed issue description published by the reporters from Jump Crypto: Stop the Chain! CosmWasm Stack Overflow.

As far as I can see all affected systems got the chance to fix their systems in time.

Cheers

JA
jacobgadikian
Jun 2023 1

imo both Jump and Confio did highly praiseworthy work here.

← Back to Discussions