Industry / Security

An AI scan found a flaw that let one message stall bitcoin nodes for over a dozen seconds, and Bitcoin Core has now patched it

A Raspberry Pi 4 small computer sitting on a network switch. File photo. Photo: RAIL P (RAIL.PHOTOGRAPHY) / Wikimedia Commons (CC0)

Bitcoin Core disclosed a flaw on Friday that let a single message tie up a node. An announcement of transactions can carry up to 50,000 entries, and duplicates were not skipped, so one message repeating the same ID could stall a node for over a dozen seconds, the advisory says. During that time the node handles no messages from other peers, including new blocks.

The project rated it medium severity and "easily discoverable." In practice, an exchange might be slow to credit deposits, or a miner could keep working on an outdated view of the chain, CoinDesk reported.

Versions 29.0 to 29.5, 30.0 to 30.4 and 31.0 to 31.2 are affected. Fixes are in 30.5 and 31.3, released Friday, and in 32.1, released in October. The 29.x line has reached end of life and will not be fixed.

The bug was reported in July by an automated scan using a large language model, part of Elias Rohrer's Project Loupe at Spiral, Block's open-source unit. Developer Gregory Sanders validated it and opened the fix, merged in August, and a researcher known as Stutxo reported it independently.

What comes next: node operators on affected versions need to upgrade. Under a policy adopted in October, easily found flaws are fixed across maintained versions with a public advisory, CoinDesk said.

This story is reporting and analysis. It is not financial, legal or tax advice.