Software vulnerability · September 17, 2018
CVE-2018-17144: the inflation bug that was never used
A bug in Bitcoin Core would have let a miner spend the same coins twice in one block, creating new bitcoin. It was reported, patched and released within about 30 hours; no exploitation is known.
- Affected
- 0.14.x (crash); 0.15.0 to 0.16.2 (crash and inflation)
- Fixed in
- 0.16.3 and 0.17.0rc4, Sept 18, 2018
- Reported
- Sept 17, 2018, 14:57 UTC
- Full disclosure
- Sept 20, 2018
- Exploited
- Not known
Timeline (UTC)
- Sept 17, 2018 · 14:57 UTCAn anonymous reporter sends a crash bug to several developers.
- 17:47 UTCMatt Corallo finds that, in some versions, the same bug allows inflation.
- 21:57 UTCThe patch is published as a pull request; 0.17.0rc4 is tagged at 23:21.
- Sept 18, 20180.16.3 is tagged at 00:24 UTC; release binaries and announcements follow at 20:44.
- Sept 20, 2018Full disclosure. The authors know of no exploitation attempt and believe more than half of the hashrate has upgraded.
What broke
A block could contain a transaction that spent the same output twice. In 0.14 this made nodes crash. In 0.15.0 to 0.16.2, if the output came from an earlier block, nodes would accept it, so a miner could have claimed the same coins twice: inflation.
How it was fixed
The patch restored the duplicate-input check. Because the crash path was easy to find from the patch, the fix was released first and the inflation part disclosed two days later.
Why it matters
It is the most serious bug disclosed in Bitcoin Core in the modern era, and it was handled before anyone used it. It also shaped the project’s later security disclosure policy.