{"id":"CVE-2021-41135","published":"2021-10-20T18:05:10Z","modified":"2024-08-04T02:59:31Z","title":"Authz Module Non-Determinism","vendor":"cosmos","product":"cosmos-sdk","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01713,"percentile":0.77958,"provenance":"source"},"cwes":[{"id":"CWE-754","name":"Improper Check for Unusual or Exceptional Conditions"}],"references":[{"url":"https://github.com/cosmos/cosmos-sdk/security/advisories/GHSA-2p6r-37p9-89p2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/cosmos/cosmos-sdk/commit/68ab790a761e80d3674f821794cf18ccbfed45ee","tags":["x_refsource_MISC"]},{"url":"https://forum.cosmos.network/t/cosmos-sdk-vulnerability-retrospective-security-advisory-jackfruit-october-12-2021/5349","tags":["x_refsource_MISC"]}],"priority":{"score":20.1,"factors":[{"name":"EPSS percentile","points":15.59},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"cosmos","affectedVersions":[{"vendor":"cosmos","product":"cosmos-sdk","versions":[">= 0.43.0, < 0.44.2"]}],"affected":[{"ecosystem":"Go","package":"github.com/cosmos/cosmos-sdk","vulnerableRanges":[">=0.43.0, <0.44.2"],"patched":["0.44.2"],"from":["GHSA-2p6r-37p9-89p2"],"provenance":"source"}],"summary":{"text":"The Cosmos SDK's x/authz module, in affected versions of cosmos-sdk, contains a non-deterministic check in the ValidateBasic method of Grant: it compares a user-supplied expiration time in MsgGrant against the node's local clock. An attacker who can submit transactions to a chain running an affected SDK version with the authz module enabled, with no special privileges or user interaction required, can halt consensus on that chain, and recovery requires applying the patch and rolling back the latest block.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:15:54Z"},"euvd":{"id":"EUVD-2021-2140","exploited":false,"provenance":"source"}}