# GHSA-4RMQ-MC2C-R495: Babylon Incorrect FP inactive accounting in costaking creates “phantom stake” that earns rewards after BTC unbond

- Database: GitHub
- Severity: medium (stated by ghsa, no CVSS score)
- Published: 2025-12-09
- Modified: 2025-12-15

## Also published as

- [GO-2025-4214](https://cve.now/GO-2025-4214.md) (Go)

## Affected versions

- github.com/babylonlabs-io/babylon/v4 (Go): fixed in 4.2.0
- github.com/babylonlabs-io/babylon/v3 (Go): through 3.0.0-snapshot.250805a
- github.com/babylonlabs-io/babylon/v2 (Go): through 2.3.2
- github.com/babylonlabs-io/babylon (Go): through 1.1.0

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

## References

- https://github.com/babylonlabs-io/babylon/security/advisories/GHSA-4rmq-mc2c-r495
- https://github.com/babylonlabs-io/babylon/commit/e65c3a55a398a403103f1b089cf76f0d4befc7a0
- https://github.com/babylonlabs-io/babylon

Page: https://cve.now/GHSA-4RMQ-MC2C-R495

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
