PT-2021-23118 · Cosmossdk · Cosmossdk

Aaronc

+3

·

Published

2021-10-20

·

Updated

2021-10-25

·

CVE-2021-41135

CVSS v3.1

6.5

Medium

VectorAV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Cosmos-SDK versions 0.43.x through 0.44.1
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. Funds and balances are safe.
Recommendations Update to version 0.44.2 to resolve the issue. As a temporary workaround, consider manually patching the code until the official update can be applied.

Exploit

Fix

Improper Check for Exceptional Conditions

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2021-41135
GHSA-2P6R-37P9-89P2

Affected Products

Cosmossdk