Vulnerability · Published Oct 20, 2021 · Assigned by GitHub_M

CVE-2021-41135Authz Module Non-Determinism

Medium 6.5

In plain English

A medium-severity security flaw in cosmos-sdk from cosmos. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.7% (higher than 77% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)1.7%top 22.5% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/cosmos/cosmos-sdk0.44.2GHSA-2p6r-37p9-89p2

Affected products (as reported)

VendorProductVersions
cosmos cosmos-sdk >= 0.43.0, < 0.44.2

Weakness: CWE-754 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

References