Bitcoin Core patches a node-stall bug found by an AI scanner
A peer could freeze a node for over a dozen seconds per message by repeating a single transaction id 50,000 times, an advisory published Friday says.
In this story
- BTC $59,313.04 −0.69%
Bitcoin Core released versions 30.5 and 31.3 on Friday 20 November to fix a bug that let a single peer stop a node from processing blocks and transactions, for as long as it was willing to keep sending the same message. The advisory was published the same day as CVE-2026-117348, “Node stall through duplicate orphan announcements”, and it classifies the issue as medium severity and easily discoverable.
That last label is the interesting one. Bitcoin Core’s disclosure policy defines “easily discoverable” as covering flaws that can be found “with minimal effort, such as through a simple LLM prompt”. The advisory says exactly that happened: the issue was surfaced by an automated LLM scan, run as part of Elias Rohrer’s Project Loupe at Spiral, verified by Gregory Sanders and routed to the security team.
What the bug did
The mechanism is worth following, because nothing about it is exotic. Bitcoin Core keeps transactions it has heard about but cannot yet validate in an orphanage, and it asks the peer that announced an orphan to supply the missing parents.
Since version 29.0, when a peer announces a transaction by wtxid and that transaction is already sitting in the orphanage, the node builds a list of the orphan’s parents and checks each one against the mempool and against its filters of recently seen transactions, to decide whether to ask that peer for them.
A single inv message can carry up to 50,000 entries, and duplicate entries were not being skipped. An attacker could therefore send a node an orphan with thousands of missing parents and then repeat that orphan’s wtxid 50,000 times inside one message. The advisory states that each such message stalls the node for more than a dozen seconds, during which it processes no messages from other peers, including blocks.
It is not a crash, it does not touch the money supply, and it does not corrupt anything. It is a denial of availability whose cost to the attacker is the price of one message that a node is obliged to read. The word “temporarily” in the advisory is doing real work: the stall ends when the traffic stops.
Who is affected, and who is not getting a fix
The advisory lists affected versions as 29.0 to 29.5, 30.0 to 30.4 and 31.0 to 31.2. Patched versions are 30.5 and 31.3, released Friday, and 32.1, which shipped on 27 October and carried the fix from the start.
The 29.x series has reached end of life and will not receive a fix. That is the one group in the disclosure that has a permanent exposure rather than a waiting period, and it is a design feature of Bitcoin Core’s maintenance model rather than an oversight: the project supports the last few major branches and retires the rest on a published schedule.
The fix was three months old
The remedy is one line of logic: process each transaction announced in an inv message only once. Conflicting advertisements for transactions cannot both enter the mempool, so the node was doing spurious work for entries it could never accept.
That change was opened as PR #35878 by Gregory Sanders on 4 August, and merged on 6 August. It reached the current major branch with 32.1 in October. It was backported to the 31.x and 30.x branches on 17 November through PRs #36892 and #36893 respectively, and released with 30.5 and 31.3 on 20 November.
So the code that fixes the flaw has been public in master for more than three months, and public in a released version since late October, while the advisory describing the flaw stayed under embargo until Friday.
Two finders, one week apart
The disclosure timeline lists two independent reports. Project Loupe reported the issue on 8 July. A party named Stutxo reported the same issue independently on 4 August, the same day the fix was opened.
When a security process says a flaw is easily discoverable, duplicate discovery is the evidence for that claim rather than an accident: two parties reached the same place without coordination, one of them using an automated scanner, inside four weeks. Bitcoin Core’s policy already anticipated this class of finding and allows it to be published alongside point releases for every maintained branch instead of waiting out the standard severity-dependent embargo, which is why the advisory, the backports and both point releases all landed on the same day.
What this does not tell you
The advisory does not report any exploitation in the wild, and it does not quantify how many nodes were running an affected version. A stall that ends when the traffic stops is a nuisance for an individual operator; it is only a network event if enough peers are hit at once during a period when block propagation matters.
It also does not say that automated scanning has made Bitcoin’s peer-to-peer layer fragile. It says one class of cheap, repetitive work — re-validating the same announcement — was left in a hot path for three years, and that a machine found it before anyone used it. The defensive value of the disclosure is that the check is gone from 30.5, 31.3 and every 32.x release, and that the next scan of the same code has one less thing to find.
The open question is a maintenance one. Every AI-surfaced finding that clears the “easily discoverable” bar obliges the project to cut a point release for each supported branch at once, which is cheap for a one-line fix and expensive for anything larger. The 29.x branch’s exclusion from this round is the first visible cost of that arithmetic.
Sources
Call BTC in the Arena
Make your own call on this coin and get it graded after costs, against the same record as everyone else.
Make a call in the Arena