GitHub Advisoryadvisory · Go

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

HIGH Published 2025-05-15 Modified 2025-05-22 Official page ↗
Ecosystem
Go
Packages
github.com/babylonlabs-io/babylon
Severity
High
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Weaknesses
CWE-190, CWE-770
Reviewed
2025-05-15

Affected packages

• Go github.com/babylonlabs-io/babylon: < 1.1.0 → fixed in 1.1.0

Description

Summary 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. Impact Denial of Service - Due to panic in the `EndBlocker` Babylon Genesis will halt

Related

Weakness · CWE (2)

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

References