Bitcoin Core Discloses Fourth Bug Found by Spiral's Open-Source Loupe AI Scanner
On this page 6 sections
TL;DR
On November 20, Bitcoin Core published CVE-2026-117348, a medium-severity bug that lets one malicious peer freeze a node for over a dozen seconds at a time. The attribution line credits the find to Project Loupe, the open-source LLM security scanner from Spiral and Block, led by Elias Rohrer. It is the fourth Bitcoin Core advisory credited to Loupe this year, and it arrived under disclosure rules Bitcoin Core rewrote in October for bugs that, in the policy's own words, "can be discovered with minimal effort, such as through a simple LLM prompt".
Two things here outlast the news. The scanner is a real, runnable piece of infrastructure with a track record, and its report contract is worth copying. And one of the most conservative security teams in software has decided bug embargoes no longer buy what they used to, because rediscovery now costs a prompt.
What the fourth bug does
Bitcoin Core parks transactions whose parents it has not seen in an "orphanage" and asks the announcing peer for the missing ones. Since version 29.0, when a peer announces such a transaction by wtxid, the node builds the orphan's parent list and checks every entry against its mempool and its filters of recently seen transactions before deciding what to request.
A single inv message can carry up to 50,000 entries, and duplicate entries were not skipped. A peer could send a node an orphan with thousands of missing parents, then fire inv messages repeating that one wtxid 50,000 times. Each message stalled the node for over a dozen seconds, during which it processed nothing from any other peer, blocks included. Picture a receptionist handed a 50,000-line list where every line is the same name, dutifully checking each against the ledger because nobody wrote "skip repeats" at the top.
The fix reads like a policy statement: process each transaction announced in an inv message only once. It shipped in Bitcoin Core 32.1 on October 27 and in 30.5 and 31.3 on November 20. Affected versions are 29.0 through 29.5, 30.0 through 30.4 and 31.0 through 31.2. The 29.x series is end of life and gets no fix; if you run it, the patch is called upgrading.
The scanner behind the finds
Loupe is a Rust workspace under Apache 2.0 with three parts: a long-running server holding an encrypted SQLite database, a fleet of stateless workers, and an operator CLI, all talking over mutual TLS. A worker clones the repo and runs LLM agents over it inside a bubblewrap sandbox, Linux only. The default scan agent is Claude through the claude CLI; the default verifier prefers Codex, on purpose, so the second opinion comes from a different model family than the scanner and inherits none of its blind spots. Model credentials stay on the trusted host and the sandbox gets a per-job broker socket, which is the right paranoia for pointing an agent at third-party code.
The part that lets it survive contact with maintainers is the report contract: a finding only counts if the agent writes a regression test that reproduces it. That is Spiral's stated answer to AI-slop vulnerability reports, and it is why four Loupe findings became four calm advisories. Confirmed findings file as ordinary GitHub issues or email, wherever a team already triages bugs. Workers scanning bitcoin projects can also load bkb-mcp, an MCP server that hands the agent BIP and protocol history while it reads.
Spiral and Block launched the scan service in May, with Bitcoin Core, LDK, BDK, rust-bitcoin, Cashu, Blockstream Jade, bitcoinj and SRI in the first test group. Scans Spiral runs itself are funded; anyone else brings their own model tokens. The stated endgame is maintainers running Loupe on their own repos.
Four advisories, and humans keep agreeing
The October 28 batch set the pattern. CVE-2026-117350, medium: on Windows, macOS and BSD, a malicious peer could "trivially crash" a node by sending TCP urgent data; Linux uses a different socket backend and was never affected. CVE-2026-117349, medium: a peer pretending not to support BIP 31 nonced pings dodged the 20-minute disconnect and let its send queue grow at up to 2MB per hour inbound and 5MB per hour outbound. CVE-2026-117346, low: 32-bit positions in undo files wrap past 4GiB, though exploiting that on 64-bit systems takes "roughly a month of the entire network's block production".
The "easily discoverable" tag on all four is accurate: independent humans keep re-deriving these bugs without the scanner. Stutxo reported 117348 on August 4, the same day the fix PR went up. L0rinc re-derived 117349 six days after Loupe's private report, and reported 117346 independently in August; Andrew Dorman found 117346 again in October. When three parties converge on one bug by different routes, the embargo was already leaking.
The policy change to steal
Bitcoin Core's disclosure policy now splits every report on one question: is the bug "easily discoverable", meaning findable "with minimal effort, such as through a simple LLM prompt"? If yes, the project cuts a point release for every maintained major version as fast as possible and publishes the advisory immediately. If no, the old schedule stands: medium and high bugs stay private until about a year after the fix ships, two weeks after the last affected release goes end of life. Unchained traced the new exception to a policy merge on October 22, days before the first Loupe batch went public.
The reasoning is economic, and you can apply it to your own project this afternoon. An embargo trades secrecy for patch time, and the trade only works while rediscovery is expensive for attackers too. A bug any prompt can surface is a bug only honest people do not know about. Hiding the spare key under the doormat was a fine plan when checking cost an afternoon of crawling; it stops being fine when a robot checks every porch on the street for pennies.
- Rewrite your disclosure policy against the prompt test: if an LLM scan would plausibly find the bug, treat it as public the moment it is fixed.
- Adopt the report contract: no reproducing proof of concept, no report. Your triage queue survives agents only if slop never gets in.
- Split model families between scan and verify, as Loupe does with Claude and Codex, so a shared blind spot cannot pass for consensus.
- Sandbox agents that read third-party code: bubblewrap or equivalent, credentials outside the sandbox, network egress kept minimal.
Key Takeaways
- Bitcoin Core disclosed CVE-2026-117348 on November 20, its fourth 2026 advisory credited to Project Loupe, the open-source LLM scanner from Spiral and Block.
- The bug let one peer stall a node for over a dozen seconds per crafted inv message repeating a single wtxid 50,000 times; fixes shipped in 30.5, 31.3 and 32.1, and end-of-life 29.x gets none.
- Bitcoin Core's policy now fast-tracks bugs "discoverable with minimal effort, such as through a simple LLM prompt": point releases for every maintained version plus an immediate advisory, skipping the roughly year-long embargo.
- Loupe is Apache 2.0 Rust: Claude scans inside a bubblewrap sandbox, Codex verifies from a different model family, and only findings with a reproducing regression test are reported.
- Independent humans (Stutxo, L0rinc, Andrew Dorman) re-derived three of the four bugs on their own, which is the evidence behind the "easily discoverable" classification.
- Spiral's endgame is maintainers scanning their own repos; the harness is on GitHub and outside users bring their own model tokens.
Sources: Bitcoin Core advisory CVE-2026-117348, Bitcoin Core security policy, CVE-2026-117350, CVE-2026-117349, CVE-2026-117346, Bitcoin Core 30.5, Spiral, Meet Loupe, Project Loupe on GitHub, Unchained