Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. cosmossdk.io/x/tx
  4. ›
  5. GHSA-8wcc-m6j2-qxvm

GHSA-8wcc-m6j2-qxvm: CosmosSDK: Transaction decoding may result in a stack overflow or resource exhaustion

December 16, 2024 (updated October 31, 2025)

ASA-2024-0012: Transaction decoding may result in a stack overflow

When decoding a maliciously formed packet with a deeply-nested structure, it may be possible for a stack overflow to occur and result in a network halt. This was addressed by adding a recursion limit while decoding the packet.

ASA-2024-0013: Transaction decoding may result in resource exhaustion

Nested messages in a transaction can consume exponential cpu and memory on UnpackAny calls. The max_tx_bytes sets a limit for external TX but is not applied for internal messages emitted by wasm contracts or a malicious validator block. This may result in a node crashing due to resource exhaustion. This was addressed by adding additional validation to prevent this condition.

References

  • github.com/advisories/GHSA-8wcc-m6j2-qxvm
  • github.com/cosmos/cosmos-sdk
  • github.com/cosmos/cosmos-sdk/commit/c6b1bdcd5628e3e425a3f02881d3c7db1d7af653
  • github.com/cosmos/cosmos-sdk/releases/tag/v0.47.15
  • github.com/cosmos/cosmos-sdk/releases/tag/v0.50.11
  • github.com/cosmos/cosmos-sdk/security/advisories/GHSA-8wcc-m6j2-qxvm

Code Behaviors & Features

Detect and mitigate GHSA-8wcc-m6j2-qxvm with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.13.7

Fixed versions

  • 0.13.7

Solution

Upgrade to version 0.13.7 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption
  • CWE-674: Uncontrolled Recursion

Source file

go/cosmossdk.io/x/tx/GHSA-8wcc-m6j2-qxvm.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:09 +0000.