Developers have fixed a long-hidden flaw in the XRP Ledger that, in theory, could have let an attacker create XRP beyond the token's fixed 100 billion supply. RippleX, which released the patch, said it found no sign the bug was ever exploited. Researchers flagged the problem on September 22.
What was found
- The flaw was an integer overflow, believed to date back to 2015.
- It was discovered by researcher Cayden Liao and Veria AI, then reported internally.
- According to the XRP Ledger Foundation, about 99.986 billion XRP remain in circulation, and none was created through the bug.
How the flaw worked
An integer overflow happens when a number grows past the largest value a system can store and wraps back around to a tiny figure, much like a game score counter that resets at its limit. On the XRP Ledger, a sufficiently large trade amount could wrap to nearly zero. The buyer would then be charged almost nothing while the seller was credited the full amount, so the difference would effectively be new XRP.
In the scenario described, an attacker would set up dummy accounts offering tokens for absurdly large XRP sums, then buy them all as the counterparty. The sellers would receive billions of valid XRP while the buyer paid a sliver of a cent. The coins could then be sold on outside exchanges.
Why it stayed hidden
- Triggering it took hundreds of deliberately built transactions, far beyond anything in ordinary use, the foundation said.
- The check that confirms no XRP has appeared after each transaction relied on the same faulty total, so it saw nothing odd.
- A cap on how much XRP one account can receive was not tripped, because an attacker could spread funds across hundreds of accounts.
What comes next
The foundation said AI is speeding up bug discovery for both attackers and defenders. It plans to use more AI-driven adversarial testing, add formal verification, and expand its bug bounty program.
Why it matters
XRP's supply is meant to be fixed, with no new coins ever minted. This case shows that such a promise depends on the software enforcing it being free of errors. Even a rule built into a blockchain can be undermined by a subtle math mistake that sits unnoticed for years. It also shows why independent researchers, bug bounties and layered safety checks matter: here, the checks shared the same blind spot. For learners, the takeaway is that a capped supply is a design goal backed by code, and code needs ongoing scrutiny.




