Security mailing lists by PureSourceCode

GO-2025-4214

MEDIUM

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

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.

Published
9 Dec 2025
Last modified
3 Mar 2026
Weakness
CWE-459
Also known as
GHSA-4rmq-mc2c-r495
Sources
OSV GHSA-4rmq-mc2c-r495JSONOSVJSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 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

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Go github.com/babylonlabs-io/babylon/v4 < 4.2.0 4.2.0
OSV Go github.com/babylonlabs-io/babylon/v3 <= 3.0.0-snapshot.250805a
OSV Go github.com/babylonlabs-io/babylon/v2 <= 2.3.2
OSV Go github.com/babylonlabs-io/babylon <= 1.1.0
OSV Go github.com/babylonlabs-io/babylon all versions
OSV Go github.com/babylonlabs-io/babylon/v2 all versions
OSV Go github.com/babylonlabs-io/babylon/v3 all versions

References

History

  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 15 Dec 2025)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 9 Dec 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.