medium
Babylon Incorrect FP inactive accounting in costaking creates “phantom stake” that earns rewards after BTC unbond
- Severity
- medium CVSS:4.0 by GitHub
- Published
- Last changed
- Also known as
- GO-2025-4214
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| github.com/babylonlabs-io/babylon/v4 (Go) | before 4.2.0 | GitHub Advisory Database, Go Vulnerability Database |
| github.com/babylonlabs-io/babylon/v3 (Go) | up to 3.0.0-snapshot.250805a, all versions | GitHub Advisory Database, Go Vulnerability Database |
| github.com/babylonlabs-io/babylon/v2 (Go) | up to 2.3.2, all versions | GitHub Advisory Database, Go Vulnerability Database |
| github.com/babylonlabs-io/babylon (Go) | up to 1.1.0, all versions | GitHub Advisory Database, Go Vulnerability Database |
Classification
What each source says
GitHub Advisory Database
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.
Go Vulnerability Database
Babylon Incorrect FP inactive accounting in costaking creates “phantom stake” that earns rewards after BTC unbond in github.com/babylonlabs-io/babylon
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-4rmq-mc2c-r495 changed 2025-12-15 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2025-4214 changed 2026-03-03 | CC-BY-4.0 |