Home NovaAstrax 360 Bitcoin Core Addresses Node Stall Vulnerability Discovered by AI

    Bitcoin Core Addresses Node Stall Vulnerability Discovered by AI

    Bitcoin Core developers have addressed a medium-severity vulnerability that could temporarily halt a node’s ability to process blocks and transactions. This flaw was initially identified by an artificial intelligence scanner developed by Block’s Spiral. The vulnerability, identified as CVE-2026-117348, has been resolved in Bitcoin Core versions 30.5, 31.3, and 32.1. While versions 30.5 and 31.3 received the fix with public advisories on Friday, version 32.1 has included the patch since October 27.

    The affected software versions range from 29.0 to 29.5, 30.0 to 30.4, and 31.0 to 31.2. Notably, the 29.x series has reached its end of life and will not receive this particular fix, requiring operators on that branch to upgrade to a more recent release.

    How the Bug Affected Bitcoin Core

    Bitcoin Core manages ‘orphan’ transactions, which are those whose preceding transactions have not yet been processed. The software requests the missing transaction details from connected peers. Since version 29.0, it constructs a list of an orphan transaction’s parents, verifying each against its mempool and filters before requesting the necessary information. An ‘inv’ message can contain up to 50,000 entries, and the software did not previously filter out duplicate transaction IDs within these messages. An attacker could exploit this by sending a node an orphan transaction with numerous missing parent transactions, followed by messages repeating that specific transaction ID up to 50,000 times. According to the advisory, each such message could cause the node to stall for over a dozen seconds, preventing it from processing any messages from other peers, including new blocks. The disruption could be extended by sending additional messages.

    The implemented fix ensures that the node processes each transaction announced in an ‘inv’ message only once. The advisory characterizes this as a temporary denial-of-service issue, with no indication of any possibility to steal bitcoin or permanently compromise a node’s integrity. It also does not state whether this bug was ever actively exploited in the wild. However, for businesses operating affected nodes, even temporary stalls could have significant implications. For instance, an exchange might experience delays in crediting user deposits, or a miner could continue working with an outdated view of the blockchain while its node is unresponsive.

    AI-Discovered Bug Under New Disclosure Policy

    The discovery is credited to an automated scan performed by an LLM through Project Loupe, an initiative by Elias Rohrer at Spiral, Block’s open-source bitcoin development division. Bitcoin Core developer Gregory Sanders confirmed the finding and brought it to the attention of the project’s security team. Loupe is a freely available scanner that utilizes AI agents to analyze open-source bitcoin code, reporting only issues supported by a functional test case. Several prominent projects, including Bitcoin Core, BDK, LDK, and others, participated in its initial scanning phase. Rohrer indicated that Spiral launched Project Loupe around March, with continuous scanning commencing in May, and Bitcoin Core was among the first projects scanned.

    Loupe initially reported this specific issue on July 8. A developer known as Stutxo independently reported a similar vulnerability on August 4. On the same day, Sanders submitted a pull request containing the fix, which was merged two days later. The fix was subsequently backported to the 30.x and 31.x branches on November 17. Bitcoin Core classified the bug as ‘easily discoverable.’ Under a policy adopted in October, vulnerabilities in this category are now subject to rapid backporting to all maintained versions and public advisories upon the release of patched versions, deviating from previous longer embargo periods.

    Security efforts within the bitcoin ecosystem have been particularly active this autumn, addressing various issues including a Linux kernel flaw that necessitated a fix for the Lightning Network and a new security analysis of a post-quantum signature proposal. Rohrer has noted that Loupe generates a substantial volume of reports, which some projects have found to be excessive, and that the team is actively working to reduce false positives. This is not the first time Loupe has identified a vulnerability in Bitcoin Core; developers previously discussed three other Core security advisories originating from the scanner on an Optech podcast on November 3. While other researchers did report some of these same issues, Loupe’s findings preceded them.

    Why it matters

    The identification and swift patching of this bug highlight the increasing effectiveness of AI-driven security tools in proactive vulnerability detection within complex software like Bitcoin Core. The rapid disclosure and fix, facilitated by a newer policy, demonstrate a commitment to network security and transparency, minimizing potential disruption to users and services reliant on the Bitcoin network.

    Source: cointelegraph.com

    LEAVE A REPLY

    Please enter your comment!
    Please enter your name here