Skip to content

CVE-2021-41135 Authz Module Non-Determinism

MediumCVSS 6.5 EPSS 1.7%
Published
Updated
Exploit status
No public exploit known

Description

The Cosmos-SDK is a framework for building blockchain applications in Golang. Affected versions of the SDK were vulnerable to a consensus halt due to non-deterministic behaviour in a ValidateBasic method in the x/authz module. The MsgGrant of the x/authz module contains a Grant field which includes a user-defined expiration time for when the authorization grant expires. In Grant.ValidateBasic(), that time is compared to the node’s local clock time. Any chain running an affected version of the SDK with the authz module enabled could be halted by anyone with the ability to send transactions on that chain. Recovery would require applying the patch and rolling back the latest block. Users are advised to update to version 0.44.2.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
cosmos github.com/cosmos/cosmos-sdk(Go) >= 0.43.0, < 0.44.2 0.44.2 Fixed
interchain cosmos sdk >= 0.43.0, < 0.44.2 0.44.2 Fixed
cosmos github.com/cosmos/cosmos-sdk = >= 0.43.0, < 0.44.2 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
cosmos github.com/cosmos/cosmos-sdk(Go) >= 0.43.0, < 0.44.2 0.44.2
interchain cosmos sdk >= 0.43.0, < 0.44.2 0.44.2
cosmos github.com/cosmos/cosmos-sdk = >= 0.43.0, < 0.44.2 No fix listed

References