GHSA-4rmq-mc2c-r495
MEDIUMBabylon Incorrect FP inactive accounting in costaking creates “phantom stake” that earns rewards after BTC unbond
Summary
A state consistency bug in x/costaking can leave a BTC delegator with non-zero ActiveSatoshis (Phatom Stake) even after they have fully unbonded their BTC delegation, if their Finality Provider (FP) drops out of the active set in the exact same babylon block height. This creates a “phantom stake”: the delegator’s BTC capital is withdrawn, the FP is inactive, but costaking continues to treat the delegation as active BTC stake allowing ongoing rewards accrual without backing BTC.
Impact
An address can keep earning costaking rewards with zero BTC staked.
Reported by @BottyBott.
- Published
- 9 Dec 2025
- Last modified
- 3 Mar 2026
- Weakness
- CWE-459
- Also known as
- GO-2025-4214
- Sources
- OSVJSONOSV GO-2025-4214JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | github.com/babylonlabs-io/babylon/v4 | < 4.2.0 | 4.2.0 |
| OSV | Go | github.com/babylonlabs-io/babylon/v3 | <= 3.0.0-snapshot.250805a | |
| OSV | Go | github.com/babylonlabs-io/babylon/v2 | <= 2.3.2 | |
| OSV | Go | github.com/babylonlabs-io/babylon | <= 1.1.0 | |
| OSV | Go | github.com/babylonlabs-io/babylon | all versions | |
| OSV | Go | github.com/babylonlabs-io/babylon/v2 | all versions | |
| OSV | Go | github.com/babylonlabs-io/babylon/v3 | all versions |
References
- https://github.com/babylonlabs-io/babylon/security/advisories/GHSA-4rmq-mc2c-r495 · WEB, ADVISORY
- https://github.com/babylonlabs-io/babylon/commit/e65c3a55a398a403103f1b089cf76f0d4befc7a0 · WEB, FIX
- https://github.com/babylonlabs-io/babylon · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 15 Dec 2025)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 9 Dec 2025)