NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Go

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

mediumCVSS 4.0 6.9

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.

Published Dec 9, 2025

Affected packages

github.com/babylonlabs-io/babylon/v4

Ecosystem
Go
Affected
< 4.2.0
Fixed in
4.2.0
Check
go list -m github.com/babylonlabs-io/babylon/v4

github.com/babylonlabs-io/babylon/v3

Ecosystem
Go
Affected
<= 3.0.0-snapshot.250805a
Fixed in
No patched version yet
Check
go list -m github.com/babylonlabs-io/babylon/v3

github.com/babylonlabs-io/babylon/v2

Ecosystem
Go
Affected
<= 2.3.2
Fixed in
No patched version yet
Check
go list -m github.com/babylonlabs-io/babylon/v2

github.com/babylonlabs-io/babylon

Ecosystem
Go
Affected
<= 1.1.0
Fixed in
No patched version yet
Check
go list -m github.com/babylonlabs-io/babylon

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Go vulnerabilities

All Go entries