GHSA-869w-47c6-fq8q: Github.com/babylonlabs io/babylon Babylon Integer Overflow Vulnerability
HIGHGHSA-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
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.
Upgrade github.com/babylonlabs-io/babylon to 1.1.0
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
GHSA-869w-47c6-fq8q Affected Github.com/babylonlabs io/babylon Versions
1 component(s)| 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?
Which Github.com/babylonlabs io/babylon versions are affected?
What version fixes GHSA-869w-47c6-fq8q?
Is github.com/babylonlabs-io/babylon affected?
What CWE is associated with GHSA-869w-47c6-fq8q?
How can I check Go dependencies for GHSA-869w-47c6-fq8q?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}