Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/babylonlabs-io/babylon
  4. ›
  5. GHSA-869w-47c6-fq8q

GHSA-869w-47c6-fq8q: Babylon Integer Overflow in Distribution Module CumulativeRewardRatio Calculation Leading to Chain Halt

May 15, 2025 (updated May 22, 2025)

Minting large amount of tokens through ibc transfer and then depositing them in validator rewards pool (via DepositValidatorRewardsPool message) can lead to integer overflow panic when calculating cumulative_reward_ratio for the validator.

This calculation happens in x/epoching module EndBlocker, thus the panic will halt the chain.

References

  • github.com/advisories/GHSA-869w-47c6-fq8q
  • github.com/babylonlabs-io/babylon
  • github.com/babylonlabs-io/babylon/commit/f0a29d60f206268b56992fa50f38a48077eb4f59
  • github.com/babylonlabs-io/babylon/security/advisories/GHSA-869w-47c6-fq8q
  • pkg.go.dev/vuln/GO-2025-3687

Code Behaviors & Features

Detect and mitigate GHSA-869w-47c6-fq8q 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 1.1.0

Fixed versions

  • 1.1.0

Solution

Upgrade to version 1.1.0 or above.

Weakness

  • CWE-190: Integer Overflow or Wraparound
  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

go/github.com/babylonlabs-io/babylon/GHSA-869w-47c6-fq8q.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 19 Aug 2025 12:18:34 +0000.