XRP Ledger’s Payment Engine Had a Counterfeiting Bug Hiding Since 2015
A critical bug in the XRP Ledger's payment engine, present since 2015, could have allowed attackers to create counterfeit XRP. The flaw was patched after being reported via a bug bounty program.
Intelligence analysis by Gemini 2.5 Flash Lite

A severe vulnerability in the XRP Ledger's payment processing code, which had been hidden since 2015, has been fixed. The bug, an integer overflow, could have enabled attackers to mint unlimited XRP by exploiting how the system handled large, specially crafted payments. Crucially, the ledger's own safety mechanism used the same flawed arithmetic, rendering it ineffective.
Imagine a piggy bank that can only hold a certain amount of money. If you try to put in too much, it magically thinks you put in almost nothing! A bug in XRP's money system worked like this, letting someone create fake money by tricking the system into thinking it was putting in a tiny amount when it was actually creating a lot.
Analysis
The Counterfeiting Vulnerability
The XRP Ledger, a distributed ledger technology designed for fast and low-cost payments, recently disclosed a critical bug within its payment engine. This vulnerability, an integer overflow, had been present in the codebase since 2015. It could have been exploited by an attacker to create an unlimited supply of counterfeit XRP. The mechanism involved crafting a single payment that consumed hundreds of specially designed offers from the order book. When the sum of what the buyer owed exceeded the maximum value the system could store, it would "wrap around" to a minuscule number. This would result in the payment engine fully compensating each seller while charging the buyer almost nothing, with the difference effectively being newly minted XRP that should never have existed.
The Flawed Safety Check
Compounding the severity of the issue, the XRP Ledger's own built-in safety mechanism, intended to prevent the creation of new XRP, utilized the same flawed arithmetic. This meant that the ledger's internal checks would also "wrap around" identically, failing to detect the illicit creation of currency. Consequently, an attacker could have generated spendable XRP far exceeding the token's intended total supply and then freely moved, traded, or sent these forged coins to exchanges. The RippleX engineers confirmed that the bug remained dormant for nearly a decade because ordinary payment scenarios did not approach the conditions required to trigger the overflow.
Expedited Patch and Disclosure
Fortunately, there is no evidence to suggest that this bug was ever exploited. A researcher reported the vulnerability through the XRPL bug bounty program in September, prompting a swift response. The fix was implemented in version 3.4.1, released on September 25. Notably, the maintainers bypassed the ledger's standard amendment process, which typically involves a two-week waiting period for validators to vote on changes. This expedited patching was deemed necessary due to the critical nature of the bug; an open-source fix revealed the vulnerability, and leaving it unaddressed for weeks would have allowed exploitation. This marks the first time a transaction-processing change has been deployed in such a manner since the system's inception over a decade ago.
Key points
- A critical bug in the XRP Ledger's payment engine, present since 2015, has been patched.
- The vulnerability could have allowed attackers to create counterfeit XRP through an integer overflow.
- The ledger's own safety checks used the same flawed arithmetic, failing to detect the issue.
- The bug was reported via a bug bounty program and fixed in version 3.4.1.
- There is no evidence that the bug was ever exploited.
The swift identification and patching of this critical bug by the XRP Ledger maintainers demonstrate the effectiveness of their bug bounty program and their commitment to network security. The fact that the vulnerability was fixed without evidence of exploitation suggests the network's integrity was maintained.
The existence of such a critical bug, undetected for nearly a decade, raises concerns about the overall security and auditing processes of the XRP Ledger's core code. The need for an expedited, non-standard patching process also highlights potential systemic risks.

