GHSA-4rmq-mc2c-r495
JSON

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 packageVersionsReported by
github.com/babylonlabs-io/babylon/v4 (Go)before 4.2.0GitHub Advisory Database, Go Vulnerability Database
github.com/babylonlabs-io/babylon/v3 (Go)up to 3.0.0-snapshot.250805a, all versionsGitHub Advisory Database, Go Vulnerability Database
github.com/babylonlabs-io/babylon/v2 (Go)up to 2.3.2, all versionsGitHub Advisory Database, Go Vulnerability Database
github.com/babylonlabs-io/babylon (Go)up to 1.1.0, all versionsGitHub 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

SourceRecordLicence
GitHub Advisory DatabaseGHSA-4rmq-mc2c-r495 changed 2025-12-15CC-BY-4.0
Go Vulnerability DatabaseGO-2025-4214 changed 2026-03-03CC-BY-4.0