XRP Ledger: A Bug Hidden Since 2015 Could Have Printed XRP Beyond the 100 Billion Cap
A flaw in the XRP Ledger since about 2015 could have created XRP from nothing. An AI firm found it first and was paid $250,000. Nothing was lost.
Key numbers
$0
Lost
$250K
Bounty paid
~11 years
Bug Age
80%+
Validators Upgraded Day 1
On 22 September 2026 a report landed in the XRP Ledger bug bounty inbox with a claim that should have been impossible. The researcher said a flaw in the ledger's trading engine could be made to create brand new XRP out of thin air, and that the new coins could be spent.
RippleX, the engineering arm of the payments company Ripple, tried it on a test server the same day. It worked. The fake XRP sat in ordinary accounts and could be sent on like any other coin. The flaw had been sitting in the ledger's payment engine since about 2015.
The XRP Ledger Foundation and RippleX published the full story on 9 October 2026, two weeks after a fix had quietly gone out. The researchers credited were Cayden Liao and Veria Labs, an AI security start-up he co-founded, named in the disclosure as Veria AI. No XRP was minted, nobody lost money, and there is no evidence anyone ever used the trick. That is the good news. The rest of the story is about how close it came, and the unusual rule the network broke to close it.
A fixed supply, and a hole in it
XRP is the native coin of the XRP Ledger, a public blockchain (a shared record of who owns what, kept in sync by many independent computers) launched in 2012 by David Schwartz, Jed McCaleb and Arthur Britto. Every XRP that will ever exist, 100 billion of them, was created on day one. Ripple holds a large share, much of it in escrow. There is no mining and no way to issue more.
That cap is the whole investment case for a coin like XRP, in the same way a company's share count matters to a shareholder. If a company could secretly print new shares and sell them, every existing share would be worth less, and nobody would trust the share register again. The bug would have let an attacker do exactly that to XRP. In the official disclosure's words, an attacker "could have created spendable XRP far beyond the total supply in a single validated transaction."
At roughly $1.40 per XRP on 10 October, the existing 100 billion are worth about $140 billion on paper. A counterfeit supply on top of that, dumped through exchanges, would have been a disaster for every holder.
The odometer that rolled over
The flaw was an integer overflow. A car's mileage counter is the easiest way to picture it. A counter with six digits can show 999,999 miles. Drive one more mile and it does not show a million; it rolls back to 000,000. Computers store numbers in boxes of a fixed size and some of them behave the same way.
The XRP Ledger counts XRP in "drops", a millionth of an XRP each, using a 64-bit number. That box tops out at roughly 9.2 quintillion drops, about 92 times every XRP in existence. No normal payment comes anywhere close, which is why nobody noticed for a decade.
The weakness sat in the ledger's built-in exchange, where users post offers to swap one asset for another, much like limit orders on a stock exchange. According to the disclosure, a single payment that bought through a very large number of offers at once could make the engine's running total of what the buyer owed grow so big that it rolled over, like the odometer, to a tiny number. The buyer would have been charged that tiny amount, "only a few hundred drops plus the fee", while the sellers were credited in full. The gap between the two would have been brand new XRP, and because the accounts on both sides could belong to the same person, that person would have ended up holding coins that never existed.
The disclosure noted that setting this up would have cost only a few hundred XRP, tiny next to the damage it could have done.
Two alarms that stayed silent
The ledger had two safety checks meant to catch exactly this, and both failed.
The first is a rule called an invariant, a final check that no transaction creates XRP. It was added about two years after the payment engine was written, and it added up balance changes with the same kind of 64-bit counter. It rolled over in the same way, so the books appeared to balance. The second check only fires if a single account holds more than the entire supply. Because the new XRP would have been spread across many accounts, no single balance would have crossed that line.
The rule they broke to fix it
Changes to how the XRP Ledger processes transactions normally go through a process called amendments. The network's trusted validators (the independent servers whose agreement decides which transactions are final, much as member banks must all accept a change to the clearing rules before it takes effect) vote on each change. It switches on only after more than 80 percent of them have supported it for two weeks.
That process would have been fatal here. The server software, called xrpld, is open source, so publishing a fix shows anyone reading it where the hole is. Under the normal process, the hole would have been public and still open for weeks.
So the fix went out on 25 September in xrpld 3.4.1, an "emergency release", built to take effect on each server the moment it upgraded. The source code was held back until the disclosure. The disclosure says this is "the first time a change to transaction processing has deliberately shipped this way since the amendment system was introduced more than ten years ago."
It carried its own risk. For a while, upgraded and older servers followed different rules, and an exploit attempt in that window could have split the network or halted it. That window was short because operators of more than 80 percent of the validators on the default trusted list, a list of about 35, were running 3.4.1 on release day.
The same release fixed a second, unrelated flaw in Batch, a feature that lets one account bundle up to eight transactions as a single unit. It was found by Denis Angell of the XRPL Foundation while re-checking findings from a public Sherlock security contest, and could have stalled the network. Batch was not yet switched on for the main network, so no funds were at risk. Its fix, an amendment called fixBatchV1_2, and Batch itself both went live on 9 October.
Not the first close call this year
This was the third serious XRP Ledger finding of 2026. In February, researcher Pranamya Keshkamat and Cantina AI's automated tool Apex found a flaw in the original Batch feature that would have let an attacker move money out of other people's accounts without their keys. Validators voted it down before it ever went live, and an emergency release, rippled 3.1.1, followed on 23 February.
In March, Ayo Akinyele, a senior director of engineering at Ripple, announced an AI-assisted red team to hunt for bugs in the 14-year-old codebase. The disclosure lists bug bounties, outside audits, public contests, AI testing and formal checks as layers of defence, and says long-dormant bugs like this one are "what the program exists to produce."
Bitcoin has been here too. In August 2010 an overflow in Bitcoin's code let someone create about 184 billion bitcoin in one transaction, and in 2018 a separate bug, CVE-2018-17144, could have let miners break the 21 million limit. The XRP Ledger bug is the same family of mistake, caught before anyone used it.
A $250,000 reward, and a row about it
The money question was answered by the finder, not the network. On 10 October Cayden Liao, a co-founder of Veria Labs, wrote on X that Veria's AI agent had found the bug and built a working exploit, and that Ripple had paid the firm the bug bounty program's top reward of $250,000. "To our knowledge, that's the largest ever paid out for a vulnerability discovered entirely by an AI agent," he wrote, according to The Block. A bug bounty is a standing offer of cash to anyone who reports a flaw privately instead of using it, the software version of a reward poster.
Liao also put a number on the danger. By his estimate, one exploit transaction could have created about 18 trillion XRP, roughly 184 times the entire 100 billion supply. That is Veria's own calculation and has not been checked independently. He said the flaw had gone unnoticed partly because it "chains together two bugs that would be low severity on their own."
Not everyone thought $250,000 was enough. On 12 October ZachXBT, a pseudonymous on-chain investigator known for tracing stolen crypto, wrote on X: "Cheaply paying the whitehat $250K for a critical infinite XRP supply bug when your treasury has billions?" A whitehat is a hacker who reports flaws rather than exploiting them. He argued that small rewards push criminals to use such bugs instead of reporting them, at a possible cost of "nine figures", and added, as quoted by Protos: "This is why people do not take XRPL or Ripple seriously as an org." In a follow-up he said the find should have been a seven-figure payday, Crypto Times reported.
There is a precedent he had in mind. In February 2022 Optimism, a network that runs on top of Ethereum, paid researcher Jay Freeman $2,000,042 for a bug that could have created unlimited ether tokens on that network. Neither Ripple nor the XRP Ledger Foundation had publicly answered the criticism by 12 October, Crypto Times reported. The Foundation had already repeated that no extra XRP was ever created and the supply is still 100 billion.
The row reached Wall Street too. Evernorth, an XRP treasury company backed by Ripple and run by the former Ripple executive Asheesh Birla, holds about 473 million XRP. It went public by merging with Armada Acquisition Corp. II, a listed shell company set up to buy a private business, and its shares began trading on Nasdaq as XRPN on 12 October. Armada's shareholders approved the deal on 30 September, five days after the quiet fix and nine days before the bug was made public. On 13 October Protos reported that the vote took place with no knowledge of the bug. Evernorth's merger documents said all 100 billion XRP "were created at the time of the XRP Ledger's launch in 2012", and its risk warnings said only in general terms that the technology could be "flawed or ineffective", according to Protos. Evernorth, Ripple and Armada did not answer Protos's questions.
The aftermath
No XRP was created and no funds were lost. The XRP Ledger Foundation and RippleX say they found no evidence the flaw was exploited on any public network. The fixed software, xrpld 3.4.1, went out on 25 September and was running on more than 80 percent of the default trusted validators that day. The payment engine now checks for overflow and fails such payments cleanly, and the "no XRP created" check uses a wider counter that cannot roll over, so it should catch a similar bug arriving by another route. Servers that did not upgrade became cut off from the network when the Batch fix went live on 9 October.
The disclosure itself did not mention a reward. On 10 October Cayden Liao of Veria Labs said Ripple had paid the program's maximum bounty of $250,000, and on 12 October the on-chain investigator ZachXBT called that cheap for a bug that could have broken the supply cap. Ripple's XRP Ledger bounty runs as a private, invitation-only program on Bugcrowd and does not publish its reward table. The team says every security finding marked as fixed will now be re-tested against each release candidate before it is closed, after the incomplete Batch fix showed how a "fixed" bug can survive. The decision to skip the amendment vote was taken by the XRPL Foundation, RippleX and validators together, and the disclosure says it does not change how the ledger makes rules: only bugs worse than a network halt clear that bar.
What this teaches
- A safety check built on the same arithmetic as the code it checks will fail in the same way. Independent checks need independent maths.
- Bugs that need absurd inputs survive longest, because normal use never goes near them. Someone has to try the absurd case on purpose.
- Open-source fixes reveal the hole. For the worst bugs, a vote-first upgrade process can leave a known exploit open for weeks.
- Fast validator upgrades are a security feature. The emergency route only worked because most operators patched on day one.
- A fixed supply is only as fixed as the code that enforces it.
- A bounty is a price signal. If finding a supply-breaking bug pays far less than using it, the next finder may not report it.
