XRP Ledger Supply Bug and Security Patch Explained
Learn about the XRP Ledger supply bug, its integer overflow flaw, and the security patch that fixed this critical vulnerability in 2026.

XRP Ledger’s Supply Bug Was an Accounting Failure, Not a Mint Button
The patch closed a potential break in XRP’s supply accounting
The XRP Ledger patched a decade-old vulnerability in late September after Veria AI identified and reported it through Ripple’s bug bounty process. RippleX deployed the repair in xrpld version 3.4.1 on Sept. 25, and more than 80% of validators on the default Unique Node List had upgraded by that date.[3]
The risk was severe because the affected code sat beside XRP’s core monetary rule: no new XRP should be created beyond the 100 billion issued when the ledger began. A successful attacker could theoretically have created unauthorized balances and sold them elsewhere, diluting holders and testing market confidence in that supply cap.[4][8]
There is no evidence that happened. The XRP Ledger Foundation and RippleX said they found no sign of exploitation, and the available public ledger data does not show unexpected XRP creation.[3][4] That is an important distinction between a patched vulnerability and a realized loss.
It is also not possible to prove a negative with complete certainty. Public records can show whether supply totals changed in visible ways, but they cannot categorically rule out every hypothetical private, undisclosed or subtle attempt. The available evidence supports no exploitation, not a guarantee that every historical transaction was harmless.
The financial cost of the incident therefore remains unquantified. No stolen pool of XRP has been identified, no compensation process has been announced, and no source cited here reports measurable transaction-performance effects from the patch. Any claim that the disclosure will produce a specific XRP price outcome is speculation.
The concept that mattered: integer overflow
The vulnerability was an integer overflow, an old software error with unusually high stakes when it appears in financial code. Computers store many numbers in fixed-size containers. If an arithmetic result becomes larger than the container can represent, the recorded figure can wrap around to a low number instead of remaining enormous.
A simplified example helps. Imagine a counter that can display only values from zero to 999. Adding one to 999 does not produce 1,000 because the display lacks room. It rolls over to zero. In software, the precise result depends on the numeric format, but the central problem is the same.
The XRP Ledger’s issue was not that a user could simply submit a payment for more XRP than existed. Ordinary balance checks would reject that. The flaw appeared when the payment engine added together amounts across many order-book offers and the cumulative total exceeded what its 64-bit integer calculation could safely represent.[8]
That distinction explains both why the bug survived for years and why it was dangerous. A normal payment, even a large one, would not approach the arithmetic boundary. An attacker would instead have needed to construct a sequence of transactions engineered specifically to push the running total past the maximum value.[4]
Once the total wrapped around, the ledger could treat an astronomical purchase as if it had a very small XRP cost. The seller-side accounts could receive the intended XRP amounts, while the buyer-side calculation reflected only the artificially reduced wrapped value. The gap between those figures would effectively be unauthorized XRP.
Why the order book was central to the attack path
XRP Ledger includes a decentralized exchange, or DEX, within the protocol. Users can place offers to exchange one asset for another, such as XRP for an issued token. A payment can consume multiple offers, allowing the protocol to assemble liquidity from several counterparties rather than requiring one seller to fill the whole trade.
That multi-offer design is useful in ordinary markets because it can improve execution. A buyer seeking an asset does not need to find one account willing to sell the entire desired amount. Instead, the payment engine evaluates a chain of offers and calculates what was delivered and what was paid.
The vulnerability affected the summation process used when consuming those offers. According to reporting on the patch, the code lacked adequate overflow checks for the 64-bit integers used to total balances and payment amounts.[8] The system could therefore miscalculate the aggregate XRP cost after enough deliberately extreme operations.
An attacker’s theoretical setup would have been operationally involved. They would create accounts under their own control, post many mispriced offers for a token or other asset, then submit a payment that consumed those offers. The aim was not to obtain the offered asset, but to manipulate the arithmetic used to settle XRP.
The required scale was one reason the flaw was not found through normal activity. The XRP Ledger Foundation said it took hundreds of deliberately constructed operations to trigger the condition.[4] Research cited in reports on the discovery also indicates the attacker would need a few hundred XRP for account reserves and transaction fees.[8]
Those costs matter, but they should not be overstated as a meaningful security barrier. A few hundred XRP and transaction fees would be trivial compared with the theoretical value of creating billions or trillions of unauthorized XRP. The practical obstacle was complexity, not the direct expense of mounting the attempt.
Why the ledger’s supply check did not stop it
Blockchain systems often include more than one defense. In this case, the XRP Ledger had a post-transaction check intended to confirm that no XRP had appeared unexpectedly. Yet that safeguard relied on the same defective arithmetic path, according to the XRP Ledger Foundation’s explanation reported by CoinDesk.[4]
That is the key lesson from the incident. A second check does not provide independent protection if it repeats the same flawed calculation. In financial systems, redundancy only reduces risk when the controls fail differently, use separately verified inputs, or impose a separate constraint that an attacker cannot manipulate through the original error.
A limit on how much XRP a single account could receive also would not necessarily have stopped the proposed attack. The attacker could distribute the unauthorized balances across hundreds of accounts, keeping each individual balance below a per-account threshold while still creating a very large aggregate amount.[4]
Reports citing Veria Labs’ analysis put the theoretical maximum unauthorized creation near 18 trillion XRP.[8] That is a scenario estimate, not an observed balance and not a forecast of damage. Its relevance is that it dwarfs the protocol’s intended 100 billion XRP supply, demonstrating the severity of the arithmetic failure.
Supply figures need to be read carefully
The phrase “XRP supply” can obscure more than it explains. XRP’s maximum issuance was set at 100 billion tokens, but not all of that amount trades freely in the market. The figure most relevant to tradable availability is circulating supply, while escrowed tokens remain locked under scheduled release arrangements.
As of Oct. 12, approximately 68.59 billion XRP was circulating, while about 31.40 billion XRP was held in Ripple escrow, according to XRP supply tracking cited in the research brief.[1] Separately, roughly 14.4 million XRP has been burned through transaction fees.[1]
Burning fees is not minting in reverse. The protocol destroys small amounts of XRP to make spam costly, reducing the total remaining amount over time. Escrow, by contrast, does not destroy XRP. It restricts when controlled holdings can become available, meaning escrowed XRP remains part of the overall issued supply.
That is why claims that “about 99.986 billion XRP remain” need context. Such a total can describe XRP issued minus burned fees, whereas circulating-supply figures exclude XRP still locked in escrow. Neither number, properly defined, indicates that the vulnerability was exploited. They measure different parts of the same supply structure.
The patched flaw would have mattered because it could have broken this accounting framework. If unauthorized XRP entered balances, the fixed issuance rule would no longer be reliable. The immediate market concern would not be a technical curiosity. It would be uncertainty over whether XRP’s quoted supply and scarcity assumptions could be trusted.
Validators, not Ripple alone, determined the repair’s reach
XRPL is open-source infrastructure run by independent validators, although the default Unique Node List is influential in determining which validators participants trust. RippleX can publish a fixed version of the software, but the network gains practical protection as validators install it and use it to validate ledger changes.
That upgrade process is why the report that more than 80% of default-list validators had updated by Sept. 25 matters.[3] It suggests the patch was adopted quickly by the validator set most users rely on. It does not mean every server, wallet operator or infrastructure provider upgraded at the same moment.
No reporting in the supplied research identifies material disruption to transaction speed, fees or throughput after the update. Nor is there evidence presented here of a separate network-wide security review triggered by the incident. The confirmed outcome is narrower: the known overflow path was repaired and widely adopted.
AI found the issue, but it does not make auditing automatic
Veria AI’s role in finding the bug is part of a broader shift in software security. AI tools can search large codebases, generate unusual test cases and identify interactions that human reviewers may not think to simulate. That is particularly relevant for legacy blockchain code carrying financial value.[3][9]
The same capability can help attackers. Automated systems can examine public repositories faster, propose exploit paths and test combinations of conditions at scale. The useful question is not whether AI is inherently defensive or offensive. It is whether protocol maintainers can turn potential findings into validated patches faster than attackers can operationalize them.
AI-generated reports also create a filtering problem. Google temporarily suspended its open-source vulnerability reward program after a significant rise in invalid AI-generated submissions, according to TechRadar.[10] The result can be more noise for already constrained engineering and security teams, not simply more useful discoveries.
For XRPL, the practical response described by the XRP Ledger Foundation includes more adversarial AI testing, formal verification and a stronger bug bounty process.[4] Formal verification is especially relevant to supply logic because it seeks mathematical proof that code obeys defined rules, rather than relying solely on conventional testing.
That program will not make future bugs impossible. It can, however, focus attention on the right category of failure: code whose arithmetic, state transitions and validation assumptions determine whether a fixed supply is actually fixed. In a financial network, that is the difference between a design promise and an enforceable constraint.
Frequently Asked Questions
What was the XRP Ledger supply bug discovered in 2026?
The bug was an integer overflow vulnerability in the XRP Ledger’s payment engine that could theoretically allow unauthorized creation of XRP beyond the fixed 100 billion supply. It occurred when summing amounts across many order-book offers, causing the total to exceed the 64-bit integer limit and wrap around to a low number. This flaw existed since 2015 and was discovered and reported in September 2026.
How did the XRP Ledger integer overflow vulnerability work?
The vulnerability arose because the payment engine added together XRP amounts from multiple order-book offers without checking for overflow. When the cumulative total exceeded the maximum value a 64-bit integer can hold, it wrapped around to a small number. This meant an attacker could make a large purchase appear to cost very little XRP, effectively creating unauthorized XRP balances.
Was the XRP Ledger supply bug ever exploited?
There is no evidence from public XRP Ledger data or statements by the XRP Ledger Foundation and RippleX that the bug was exploited. While public records show no unexpected XRP creation, it is impossible to categorically rule out every hypothetical private or subtle attempt. Overall, available evidence supports that no exploitation occurred.
What steps were taken to patch the XRP Ledger supply bug?
The vulnerability was patched promptly after discovery through Ripple’s bug bounty program. The fix was deployed in the xrpld version 3.4.1 on September 25, 2026, and by that date, over 80% of validators on the default Unique Node List had upgraded. The patch closed the overflow risk in the payment engine’s supply accounting.
How does the XRP Ledger handle supply accounting and security?
XRP Ledger enforces a fixed maximum supply of 100 billion XRP through software arithmetic and validator consensus rather than just protocol documentation. Its payment engine processes transactions and order-book offers with strict balance checks to prevent unauthorized creation. The recent bug highlights the importance of rigorous code auditing and timely upgrades to maintain supply integrity.
How we researched this
This article was assembled from 3 published articles, 10 cited references.
Nothing here is based on hands-on testing. Where a figure or finding appears, it belongs to the source cited beside it, and the writing says so rather than implying otherwise. Every source is listed below so you can check it.
Sources
Why a bug that could have threatened XRP's 100 billion supply cap stayed hidden for years — CoinDesk
Bitcoin, Ethereum and Solana ETFs All in the Red for October — Decrypt
How Zcash Plans to Hide Your Keys From AI and Quantum Attacks — Decrypt
Ripple Unlocks 1 Billion XRP in Scheduled October Escrow Release
XRP Ledger Foundation Confirms Fix for Supply-Cap Vulnerability | TokenPost
XRP Ledger patched decade-old bug that could create billions of dollars in XRP from nothing
Decade-Old XRP Ledger Bug Could Have Minted Free XRP From Nothing | CoinMarketCap
XRP Ledger Reveals Critical Bug That Could Have Minted XRP Beyond Its 100 Billion Supply
XRP Ledger patches decade-old bug that could have minted trillions of XRP | The Block
Google benches open source bug bounty program following 'significant rise' in AI submissions
Related Articles

DeFi Exploits September 2026
Detailed overview of major DeFi exploits in September 2026, including Payy, Duelbits, and Meter security incidents and their user impacts.

Ethereum Glamsterdam Upgrade
Learn about the Ethereum Glamsterdam upgrade, its impact on fees, smart contracts, staking, and network activity in this practical guide.

AI Impact on Crypto Security: Risks and Defenses Explained
Explore how AI affects crypto security, from autonomous exploits to defense challenges in blockchain and smart contracts.

Solana Network Upgrades and Their Impact on Market Activity
Explore how Solana network upgrades affect MEV, transaction capacity, and market activity in 2026 for traders and validators.