RT-2026-041: GridPool: a fake block could cancel miners' pending payouts
Status: Fixed in the v0.2.2-beta.2 pre-release, not on
main· Severity: Critical (draft score 9.2 of 10) · CVE: Not requested · Published: 2026-12-03
In short
GridPool is a mining pool run by a group of cooperating computers, called nodes. Each node tracks the work miners have done and what they are owed. When the pool finds a Bitcoin block, the node marks that work as paid and starts a new round.
In older versions, a node could be fooled into thinking the pool had found a block when it had not. Anyone who can send work to the node could do this, without an account. The node then marked miners' unpaid work as paid and passed the false news on to other nodes.
Grid Labs has fixed this in the v0.2.2-beta.2 pre-release. Install v0.2.2-beta.2 itself, and don't go back to main. The fix is not on main.
Am I affected?
- Affected: v0.2.0-beta.1, v0.2.2-beta.1, and
mainup to and including commit97bc68ca772c9cd14406a6e365d60be4819ef235. Custom builds made from that code need review. - Fixed: v0.2.2-beta.2 (pre-release), commit
61a4be156ee43cb4a0d890c87a445ef32c4f25d2. - Not affected: builds that contain commit
61a4be1. Today'smaindoes not contain it.
The attacker only needs to send work to your node: for example, by pointing a miner at your pool, or from another node that passes work to yours. No password or account is needed.
What was wrong
Think of a raffle where anyone can walk up with a ticket and say "we won". The organizer pays out and tears up everyone's tickets for that round. It should have checked the official draw. Instead it checked only the ticket, which got to say how easy winning was. Anyone could print a winning ticket.
In GridPool, submitted work counted as a found block if it met a difficulty level written inside that same work. The node never compared that level with the real Bitcoin network, or asked its own Bitcoin node whether the block existed.
What could an attacker do?
One fake piece of work could make a node close the round, mark the payout list as paid, and drop miners' unpaid work. Those miners lost their claim to payment, even after the node caught up with the real Bitcoin chain. Other nodes received the fake block and did the same. Repeating it could keep the pool switching rounds.
What we tested: in a lab with two nodes on a private Bitcoin test network, one fake piece of work made both nodes switch to a block their Bitcoin node had never seen, and drop the unpaid work.
What we did not show: creating bitcoin, breaking Bitcoin, taking over the node's computer, reading private data, sending payouts to the attacker, or attacking a real pool. The damage is to the pool's record of who is owed what.
How Grid Labs fixed it
Work that looks like a block is now only a possible block. The node leaves payouts alone until its own Bitcoin node shows that block on the real chain, matched to the right payout list. The same block can't be paid twice.
Your own Bitcoin node is now the judge. A node that settles payouts must be connected to its own Bitcoin node, kept fully in sync. A node set up to rely on outside sources instead can't check Bitcoin for itself and should not settle payouts.
What we verified: retests of Grid Labs' test builds on 2026-08-26 and 2026-09-02 showed that fake and repeated blocks no longer changed anything, and real blocks paid exactly once. On 2026-11-27 we read the source code and its history and confirmed the fix is in v0.2.2-beta.2. We have not run new tests on the release itself.
What you can do now
- Install v0.2.2-beta.2, not code from
main. It is a pre-release for controlled testing, not a stable release. - The release isn't digitally signed, so check that your container matches the fingerprint in the release notes:
sha256:8672c835b14f8fcad8a358e5b80ae945d6973b5039c706437b3b1c4bdff6f5d5. - If you can't upgrade, no setting fixes an older version, and adding a Bitcoin node does not help. Accepting work only from trusted miners and nodes lowers the risk.
- On an older version, compare "block found" events with your Bitcoin node. A GridPool block your Bitcoin node doesn't have is a strong warning sign.
- After upgrading, a "possible block" message with no new round is normal.
Technical details
For readers who want the specifics:
- At
97bc68c, the share verifier (BootShareVerifier.cs:262-297) setIsBlockwhen the header hash met thenBitstarget in the submitted header. It never checked that target against the network target for the parent block. SubmitShareAsyncthen rotated the round whenever the result looked like a block, even for a duplicate. Rotation removed the paid snapshot's proofs from the unpaid work set without checking the attached Bitcoin node's active chain. Accepted shares were relayed to peers, so the bad transition spread.- Reachable through the share-submission, peer-relay or DATUM interfaces.
- Fix commit
400fc6eadds chain-confirmed payment finality. The self-target check now only marks a block candidate. SubmitShareAsyncdemotes the result toBlockCandidateand leaves payout state alone until the attached Bitcoin node shows the block on its active chain; the confirmation is tied to that proof's payout snapshot (BootProtocolStateService.cs:3280-3368).- Automatic rotation fails closed without that confirmation (
:3563-3598). A duplicate cannot pay twice. - A payment-finalizing node needs attached-node mode with synchronized RPC and ZMQ. A node in
external-fallbackmode has no independent view of Bitcoin and is not a payout-state authority. - Detection: on a vulnerable build, check block-found, round-rotation and snapshot-paid events against your Bitcoin node's active chain. On the fixed release, a
gridpool-block-candidateevent with no rotation is normal fail-closed behavior. - Mitigation on a vulnerable build: block untrusted peers from relaying shares into an isolated node; this also stops normal peer convergence.
- The fix ships in
v0.2.2-beta.2(commit61a4be1); it is not reachable frommain. The release tag is unsigned; container digestsha256:8672c835b14f8fcad8a358e5b80ae945d6973b5039c706437b3b1c4bdff6f5d5. - Retests of the vendor release candidates (2026-08-26, 2026-09-02) were dynamic, in a two-node regtest lab. The 2026-11-27 check of the release was a source and Git history review only.
Timeline
| Date | Event |
|---|---|
| 2026-08-13 | Found by the 256 Foundation Red Team while reading the source code |
| 2026-08-13 | Reported privately to Grid Labs, with the detailed write-up the same day |
| 2026-08-18 | Confirmed in a two-node test lab against 97bc68c; Grid Labs created fix 400fc6e |
| 2026-08-26 | Retest of Grid Labs' test build confirmed the fix |
| 2026-09-02 | Follow-up retest: real blocks still pay exactly once |
| 2026-09-09 | v0.2.2-beta.2 pre-release published with the fix |
| 2026-11-27 | Source review confirmed the fix is in v0.2.2-beta.2 and not on main |
| 2026-12-03 | Advisory published, with Grid Labs' agreement |
Credits
Found by the 256 Foundation Red Team. Thanks to the Grid Labs maintainers for building and releasing the fix and for working with us on the retests.
References
- Fix: commit
400fc6e("Require proof-backed state and chain-confirmed payments") - Release: GridPool v0.2.2-beta.2 (pre-release)
- Vendor notes: GridPool Critical State-Validation Security Release
- Related: RT-2026-042: GridPool: a rogue peer node could rewrite who gets paid, fixed by the same commit
- CWE-345: Insufficient Verification of Data Authenticity
- Scoring: CVSS 4.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N(draft, unreviewed)
Revision history
| Date | Change |
|---|---|
| 2026-12-03 | Initial publication |
The 256 Foundation follows coordinated vulnerability disclosure. See our Responsible Disclosure Policy.