Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/cosmos/cosmos-sdk
  4. ›
  5. GHSA-8wcc-m6j2-qxvm

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

December 16, 2024 (updated December 23, 2024)

ASA-2024-0012 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 Nested messages in a transaction can consume exponential cpu and memory on UnpackAny calls. Themax_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. Learn more about Dependency Scanning →

Affected versions

All versions before 0.47.15, all versions starting from 0.50.0-alpha.0 before 0.50.11

Fixed versions

  • 0.50.11
  • 0.47.15

Solution

Upgrade to versions 0.47.15, 0.50.11 or above.

Weakness

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

Source file

go/github.com/cosmos/cosmos-sdk/GHSA-8wcc-m6j2-qxvm.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:15:42 +0000.