# GHSA-4rmq-mc2c-r495: Babylon Incorrect FP inactive accounting in costaking creates “phantom stake” that earns rewards after BTC unbond

- Severity: Medium (CVSS:4.0, scored by GitHub) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2025-12-09T14:25:03.000Z
- Modified: 2026-03-03T04:57:46.497Z
- Also known as: GO-2025-4214
- Weaknesses: CWE-459

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

(As written by GitHub Advisory Database.)

## Affected

- github.com/babylonlabs-io/babylon/v4 (Go): before 4.2.0
- github.com/babylonlabs-io/babylon/v3 (Go): up to 3.0.0-snapshot.250805a; all versions
- github.com/babylonlabs-io/babylon/v2 (Go): up to 2.3.2; all versions
- github.com/babylonlabs-io/babylon (Go): up to 1.1.0; all versions

## References

- <https://github.com/babylonlabs-io/babylon/security/advisories/GHSA-4rmq-mc2c-r495> (advisory, web)
- <https://github.com/babylonlabs-io/babylon/commit/e65c3a55a398a403103f1b089cf76f0d4befc7a0> (fix, web)
- <https://github.com/babylonlabs-io/babylon> (package)

## Sources

- GitHub Advisory Database: [GHSA-4rmq-mc2c-r495](https://github.com/advisories/GHSA-4rmq-mc2c-r495), CC-BY-4.0, modified 2025-12-15
- Go Vulnerability Database: [GO-2025-4214](https://pkg.go.dev/vuln/GO-2025-4214), CC-BY-4.0, modified 2026-03-03

---

Page: https://cve.day/GHSA-4rmq-mc2c-r495 · Whole record: https://cve.day/GHSA-4rmq-mc2c-r495.json · Rebuilt by cve.day 2026-11-25T22:56:24.252Z
