Skip to content

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

MediumCVSS 6.9
Published
Updated
Exploit status
No public exploit known

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.

Upgrade path

1 package: 0 fixed, 1 partially fixed.

PackageAffectedFixed inStatus
babylonlabs-io github.com/babylonlabs-io/babylon/v4(Go) < 4.2.0; <= 1.1.0; <= 2.3.2; <= 3.0.0-snapshot.250805a +1 more 4.2.0 Partially fixed

Affected products

ProductAffected versionsFixed in
babylonlabs-io github.com/babylonlabs-io/babylon/v4(Go) < 4.2.0 4.2.0
babylonlabs-io github.com/babylonlabs-io/babylon/v4(Go) <= 3.0.0-snapshot.250805a No fix listed
babylonlabs-io github.com/babylonlabs-io/babylon/v4(Go) <= 2.3.2 No fix listed
babylonlabs-io github.com/babylonlabs-io/babylon/v4(Go) <= 1.1.0 No fix listed
babylonlabs-io github.com/babylonlabs-io/babylon/v4(Go) All versions No fix listed

References