Bitcoin Core Patches Three AI-Found Security Flaws

Bitcoin Core disclosed three security flaws found through AI-assisted scanning, including two that can exhaust node memory and crash systems. Patches are available for affected versions.

Bitcoin Core developers have patched three security flaws identified through automated large language model scanning, including two that can exhaust memory and crash systems running the software.

The vulnerabilities were disclosed on Oct. 28 after Project Loupe, an automated security-scanning initiative, found weaknesses in Bitcoin Core, the open-source software used to validate transactions and connect to the Bitcoin network. Fixes are available in versions 29.5, 30.4, 31.2 and 32.1.

The most immediately exploitable flaw affects nodes running Windows, macOS and BSD. A malicious peer could send specially crafted network data that bypasses limits on incoming traffic. Memory use could then rise until the node crashes. Linux systems are not affected because they use a different method to monitor network connections.

A second medium-severity flaw affects communication with older peers that do not support a networking feature introduced through Bitcoin Improvement Proposal 31. An attacker could cause a node to retain outgoing messages indefinitely. Memory use could increase by up to 2 megabytes per hour for each inbound connection and 5 megabytes per hour for each outbound connection, potentially disconnecting the node from the Bitcoin network.

The third flaw involves files used to reverse transactions during blockchain reorganizations. In unusual conditions, a miner could create enough transaction data to exceed file-position limits, which could corrupt records and force affected nodes to shut down. Bitcoin Core rated the issue low severity because exploiting it on a conventional 64-bit system would require thousands of specially constructed blocks and a precisely timed reorganization.

Project Loupe was developed by Elias Rohrer at Spiral. Gregory Sanders later confirmed the findings and reported them to Bitcoin Core’s security team. The vulnerabilities were found between July 8 and Oct. 23. Developers completed the patches on Oct. 26 and released the software updates over the following two days.

Bitcoin Core’s security policy calls for public disclosure after fixes are available for weaknesses that can be found through relatively simple automated or AI-assisted analysis. The project has not identified active exploitation of the flaws.

The patches do not remove every possible exposure. Bitcoin Core said 32-bit systems and nodes using FAT32 file systems remain vulnerable to the file-overflow issue in specific circumstances. Version 29.x and older branches have reached end of life and will not receive future security updates, even though version 29.5 includes a fix.

Operators upgrading to Bitcoin Core 32.1 may need macOS 14 or newer or Windows 10 version 1903 or newer. Upgrades from older releases may also require changes to the directory used to store blockchain data.

Articles by this author