Advisory

GHSA-4rmq-mc2c-r495

Also known as: GO-2025-4214

Summary

Babylon Incorrect FP inactive accounting in costaking creates “phantom stake” that earns rewards after BTC unbond

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-12-09 14:25 UTC
Modified
2025-12-15 19:56 UTC

Affected packages and fixes

github.com/babylonlabs-io/babylon/v4

Go · All systems

Affected

  • introduced 0, fixed 4.2.0 (semver)

Fixed versions

4.2.0

Fix

github.com/babylonlabs-io/babylon/v3

Go · All systems

Affected

  • introduced 0, last affected 3.0.0-snapshot.250805a (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

github.com/babylonlabs-io/babylon/v2

Go · All systems

Affected

  • introduced 0, last affected 2.3.2 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

github.com/babylonlabs-io/babylon

Go · All systems

Affected

  • introduced 0, last affected 1.1.0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences