The Long Beach News

collapse
Home / Daily News Analysis / XRP Ledger patched decade-old bug that could create billions of dollars in XRP from nothing

XRP Ledger patched decade-old bug that could create billions of dollars in XRP from nothing

Oct 17, 2026  Twila Rosenbaum  63 views
XRP Ledger patched decade-old bug that could create billions of dollars in XRP from nothing

A long-standing flaw in the XRP Ledger could have allowed attackers to create and spend new XRP from nothing, an outcome that would have violated the cryptocurrency's fixed supply of 100 billion tokens. The defect dated to 2015, according to the disclosure, and was serious enough to prompt an emergency software release. The ledger's developer team said it found no evidence that the vulnerability was exploited on public networks before the fix.

The issue centered on a counting error in the XRP Ledger's built-in exchange. That on-ledger venue lets users trade XRP and issued assets without leaving the network, and it routes payments through offers when a direct match is not available. In certain conditions, researchers found that the exchange's accounting could misjudge how much value actually moved. A crafted payment could then have credited recipients with large amounts of spendable XRP while the sender paid almost nothing.

Key facts behind the emergency patch

  • The vulnerability dated to 2015, when the XRP Ledger's built-in exchange was already part of the network's core design.
  • Researchers demonstrated that a payment could create spendable XRP without the sender funding it.
  • The flaw could have allowed hundreds of accounts to receive large XRP credits while the buyer paid almost nothing.
  • XRP has a fixed supply of 100 billion tokens, so unauthorized creation would have broken a central monetary guarantee.
  • The ledger's developer team said it found no evidence of exploitation on public networks.
  • The flaw was fixed in the xrpld 3.4.1 software release on Sept. 25.

The potential impact was not merely technical. XRP's supply cap is one of the asset's defining properties. Unlike proof-of-work networks that rely on mining rewards to bring new coins into circulation, the XRP Ledger was designed with a pre-set supply. That makes any bug that can create XRP without a corresponding debit especially sensitive. If an attacker could repeat the exploit across many accounts, the result could have been a large, unbacked increase in the number of spendable tokens. At prevailing market prices, the creation of billions of dollars' worth of XRP from nothing would have been possible in principle, although the actual value would depend on liquidity and how quickly the market recognized the new supply.

How a counting error threatened the supply cap

The XRP Ledger's built-in exchange is not a separate application bolted onto the network. It is part of the ledger's protocol, which means its accounting rules are enforced by the same consensus process that validates payments. Users can submit offers to buy or sell XRP for issued assets, and payments can be routed through those offers automatically. This design is useful because it allows value to move across different assets on the ledger without a centralized intermediary. It also means that a flaw in the exchange logic can affect the ledger's core balances, not just a peripheral trading feature.

The public description points to a counting error rather than a simple authorization failure. In a normal trade or routed payment, the ledger must debit one account and credit another by amounts that are consistent with the offer prices and the payment instructions. If the software miscounts one leg of that transaction, the books may no longer balance. A transaction could appear valid while the recipient receives more value than the sender actually provided. Researchers demonstrated exactly that risk: a payment could create spendable XRP without the sender funding it. The flaw did not require a miner or a validator to break consensus. It exploited a logic error in how the ledger calculated the movement of value.

The disclosure said the vulnerability could have allowed hundreds of accounts to receive large amounts of XRP while the buyer paid almost nothing. That detail matters because it suggests the bug was not limited to a single, isolated transaction. If the same pattern could be repeated, an attacker might have been able to scale the creation of unbacked XRP across many addresses. The resulting tokens would have been spendable on the ledger, which means they could have been sold, transferred, or used in the on-ledger exchange. The supply cap would have been violated not by a change to the ledger's rules, but by a miscalculation inside the software that enforced those rules.

Why 2015 matters

A flaw dating to 2015 is notable because it would have sat in the codebase for roughly a decade. The XRP Ledger launched in 2012, and by 2015 it was already operating with its core payment and exchange features. Long-lived bugs are not unusual in complex financial software, but their age can make them harder to find. Developers and security researchers often focus on new code, recent changes, and active attack surfaces. Older logic can receive less scrutiny, especially when it is deeply embedded in the protocol and has not caused an obvious failure. The fact that this defect survived for years does not necessarily mean it was easy to exploit. It may have required a specific combination of payment paths, offer prices, and account balances. But it does show why periodic reviews of core accounting code are important even when a network has been running for a long time.

The vulnerability also highlights the difference between a consensus attack and an application-level accounting bug. The XRP Ledger's consensus mechanism is designed to prevent conflicting versions of the ledger from being accepted. It does not automatically guarantee that every accepted transaction is economically sound. If the transaction rules themselves contain an error, consensus can faithfully agree on an incorrect result. That is why clients, validators, and node operators need software that enforces invariants such as conservation of value. In this case, the invariant was simple: new XRP should not appear unless the ledger's rules explicitly allow it. The counting error threatened that invariant.

The emergency release and disclosure

The flaw was fixed in the xrpld 3.4.1 software release on Sept. 25. The timing and the emergency nature of the release underscore how seriously the issue was treated. A bug that can create spendable XRP is not a routine maintenance item. It strikes at the ledger's monetary policy and at the trust that users place in the supply cap. The developer team said it found no evidence of exploitation on public networks. That statement is important because it suggests the flaw was discovered and patched before any known attacker used it to create unbacked tokens. It does not prove that no attempt was ever made, but it is the strongest public indication available about the state of the network before the fix.

News of the patch came after researchers demonstrated the issue. The disclosure described how a payment could create spendable XRP without the sender funding it, prompting the emergency software release. The sequence is familiar in security response: researchers find a flaw, developers confirm it, a patch is prepared and shipped, and operators are urged to upgrade. In this case, the potential consequences were large enough that the release needed to move quickly. Node operators, validators, exchanges, and other infrastructure providers that run XRP Ledger software would need to update to the patched version to ensure they were enforcing the corrected rules. Any system that relied on an older version could remain exposed or could fall out of sync with the corrected network behavior.

The disclosure also raises questions about how vulnerabilities in foundational blockchain software are handled. Public blockchains are transparent by design, but security fixes often require coordinated disclosure. Developers need time to patch, operators need time to upgrade, and users need clear information without giving attackers a roadmap. In this case, the public summary focused on the existence of the flaw, its potential impact, and the fix. It did not provide a step-by-step exploit recipe. That balance is typical for critical infrastructure bugs. The goal is to preserve confidence while reducing the chance that unpatched systems are targeted.

What the patch means for the XRP supply

The XRP Ledger's fixed supply of 100 billion tokens is a core part of its identity. The network does not use mining, and new XRP is not created as a block reward. Instead, the supply was established at the outset, with mechanisms such as fee burning affecting the amount in circulation over time. That design makes any inflation bug especially significant. If an attacker could create XRP from nothing, the asset's scarcity would be undermined. Even if the newly created tokens were not immediately sold, their existence would change the ledger's accounting and could distort markets, collateral systems, and user confidence. The patch restores the intended rule that XRP balances should move only when there is a corresponding debit or a valid ledger-native operation.

The fact that the flaw could have affected hundreds of accounts adds another layer of concern. A single erroneous transaction might be contained or reversed through operational responses. A repeatable pattern across many accounts would be harder to detect and harder to unwind. It could look like a series of ordinary trades or payments, at least until the missing debits were noticed. The disclosure's reference to hundreds of accounts suggests the bug had the potential to scale. That is why the supply cap was not just a theoretical concern. The ledger's accounting rules had to be correct at the level of each payment and each offer, because small errors can compound when repeated.

Security lessons for ledger operators

The incident is a reminder that blockchain security is not only about cryptography and consensus. It is also about accounting logic, invariants, and software maintenance. A ledger can have strong consensus and still be vulnerable if the rules it enforces are wrong. Developers need tests that check conservation of value across complex payment paths, offer crossings, and asset conversions. They need monitoring that can detect unexpected changes in supply or balances. And they need processes for shipping emergency fixes when a critical flaw is found. The XRP Ledger patch checks each of those boxes: the flaw was identified, a fix was released, and operators were told to upgrade. The absence of known exploitation on public networks is the best outcome available after a bug of this kind.

For users, the practical takeaway is that the software running the network matters. Most people interact with a blockchain through wallets, exchanges, and custodians, not by running a node. Those intermediaries are responsible for using patched software and for monitoring the health of the ledgers they support. For node operators and validators, the release is a direct operational requirement. Running the corrected version is part of enforcing the network's rules. The emergency patch does not change the fixed supply cap; it protects it. The bug was a decade-old accounting error, and the fix is now part of the maintained codebase. The disclosure remains a case study in how a small counting mistake can threaten a large monetary guarantee.


Source: Coindesk News


Share:

Your experience on this site will be improved by allowing cookies Cookie Policy