GHSA-869w-47c6-fq8q: Github.com/babylonlabs io/babylon Babylon Integer Overflow Vulnerability

HIGH
CWE-190 CWE-770
Published
Advisory Summary

GHSA-869w-47c6-fq8q is a HIGH babylon integer overflow vulnerability (CWE-190: Integer Overflow or Wraparound) affecting Github.com/babylonlabs io/babylon libraries in the Go ecosystem. The issue involves babylon integer overflow in distribution module cumulativerewardratio calculation leading to chain halt. Remediation is available by upgrading affected packages to version 1.1.0.

GHSA-869w-47c6-fq8q at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-869w-47c6-fq8q
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-190: Integer Overflow or Wraparound
Affected Product Github.com/babylonlabs io/babylon
Package Ecosystem Go
Published Date
Last Updated

How to Fix GHSA-869w-47c6-fq8q

To remediate this vulnerability, upgrade all affected Github.com/babylonlabs io/babylon dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/babylonlabs-io/babylon fixed: 1.1.0
Upgrade github.com/babylonlabs-io/babylon to 1.1.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/babylonlabs-io/babylon

How to Check if You Are Affected

To determine whether your application is affected by GHSA-869w-47c6-fq8q, inspect your project dependencies for Github.com/babylonlabs io/babylon:

inspect dependencies for github.com/babylonlabs-io/babylon

Analyze the terminal output to locate any version of Github.com/babylonlabs io/babylon in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-190: Integer Overflow or Wraparound, where the product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. this occurs when an integer value is incremented to a value that is too large to store in the associated representation. when this occurs, the value may become a very small or negative number. In Github.com/babylonlabs io/babylon, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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

GHSA-869w-47c6-fq8q Affected Github.com/babylonlabs io/babylon Versions

1 component(s)
Fixed Versions:
1.1.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/babylonlabs-io/babylon
Go
< 1.1.0
1.1.0

References

Frequently Asked Questions

What is GHSA-869w-47c6-fq8q?
GHSA-869w-47c6-fq8q is a security vulnerability in Github.com/babylonlabs io/babylon involving Babylon Integer Overflow in Distribution Module CumulativeRewardRatio Calculation Leading to Chain Halt under CWE-190: Integer Overflow or Wraparound.
Which Github.com/babylonlabs io/babylon versions are affected?
Affected versions include releases prior to 1.1.0 across affected packages: github.com/babylonlabs-io/babylon.
What version fixes GHSA-869w-47c6-fq8q?
Upgrading to 1.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/babylonlabs-io/babylon affected?
Yes, github.com/babylonlabs-io/babylon is affected in releases prior to 1.1.0. Upgrade your dependency to 1.1.0 or later.
What CWE is associated with GHSA-869w-47c6-fq8q?
GHSA-869w-47c6-fq8q is classified under CWE-190: Integer Overflow or Wraparound (The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.).
How can I check Go dependencies for GHSA-869w-47c6-fq8q?
Run the dependency tree command: 'inspect dependencies for github.com/babylonlabs-io/babylon'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-869w-47c6-fq8q",
  "modified" : "2025-05-22T14:57:31Z",
  "published" : "2025-05-15T14:05:50Z",
  "aliases" : [ ],
  "summary" : "Babylon Integer Overflow in Distribution Module CumulativeRewardRatio Calculation Leading to Chain Halt",
  "details" : "### Summary\nMinting 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.\n\nThis calculation happens in `x/epoching` module `EndBlocker`, thus the panic will halt the chain.\n\n### Impact\n\nDenial of Service - Due to panic in the `EndBlocker` Babylon Genesis will halt",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/babylonlabs-io/babylon"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/babylonlabs-io/babylon/security/advisories/GHSA-869w-47c6-fq8q"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/babylonlabs-io/babylon/commit/f0a29d60f206268b56992fa50f38a48077eb4f59"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/babylonlabs-io/babylon"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2025-3687"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-190", "CWE-770" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-05-15T14:05:50Z",
    "nvd_published_at" : null
  }
}