On August 15, 2010, the Bitcoin network faced a crisis unlike any before: an integer overflow vulnerability allowed an attacker to create 184 billion Bitcoin out of thin air — nearly 9,000 times the intended maximum supply of 21 million. Known as CVE-2010-5139, this remains the most severe inflation bug in Bitcoin's history.
Discovery: A Strange Block Appears
Bitcoin Core developer Jeff Garzik was the first to notice something unusual in block 74638. The transaction outputs showed a value of 92,233,720,368.54 BTC each — a figure that made no mathematical sense. Within an hour, a Bitcointalk forum user started a thread titled “overflow bug serious,” urging: “We need a fix asap.”
By then, Bitcoin had already survived at least four major bugs. The Bitcoin wiki lists about 40 vulnerabilities of varying severity, but this was the first inflation bug — and it shattered the notion that Bitcoin's supply was inviolable.
The Mechanics: How an Integer Overflow Created Billions
The attack exploited a classic programming error: when the sum of transaction outputs exceeds the maximum integer value, the number wraps around to a negative. Normally, transaction inputs equal outputs, with any difference treated as a mining fee. But a negative total output appeared as an enormous fee, bypassing all sanity checks. As forum user Ifm explained: “When the sum was negative, the difference from the input looked like a fee. It slipped through all the checks.”
Had the attacker chosen a more modest number, the exploit might have remained hidden longer. But generating 184 billion BTC drew immediate attention, and the bug was discovered within 90 minutes.
The Fix: Satoshi and Gavin's Swift Response
Within two hours of the bug being reported, Gavin Andresen and Satoshi Nakamoto were already working on a patch. Satoshi posted over a dozen times in the forum thread, reassuring the community: “Once more than 50% of the node power is upgraded and the good chain overtakes the bad, the 0.3.10 nodes will make it hard for any bad transactions to get any confirmations.”
The patch was rapidly deployed, and nodes upgraded to version 0.3.10. The invalid block was effectively purged as the honest chain grew longer. This incident demonstrated the resilience of Bitcoin's decentralized governance — a global network of volunteers coordinating in real time to fix a critical flaw.
Ironically, this was one of Satoshi's final major contributions to the Bitcoin community. Within five months, he would vanish forever, leaving behind a cryptocurrency that had proven strong enough to survive its most existential test yet.
Legacy: A Lesson in Security
The 184 billion BTC bug became a seminal case study in cryptocurrency security. It highlighted the importance of rigorous code audits, the value of rapid community response, and the necessity of backward-compatible upgrades. Today, CVE-2010-5139 is taught in blockchain courses as an example of how even a simple integer overflow can threaten an entire monetary system.
More importantly, it showed that Bitcoin's open-source, peer-to-peer nature could withstand catastrophic attacks. The network didn't fail; it evolved, thanks to the vigilance of its developers and miners. That resilience continues to underpin trust in the world’s first cryptocurrency.

