S&P 5007,182.78▼0.25% Nasdaq23,585.80▼0.62% Dow Jones50,182.95▲0.33% FTSE 10010,609.30▲1.75% US 10Y4.85%▼1.14% Gold3,593.40▲1.63% Crude Oil84.91▲1.47% EUR/USD1.0975▲0.12% GBP/USD1.3109▼0.02% Dollar Index103.77▲0.10% Brent Crude91.73▼3.04% USD/NGN1,361.00▲0.30% USD/ZAR17.5182▼0.12% USD/KES130.05▲0.80% USD/GHS11.8400▲0.68% USD/EGP54.77▲1.08% Bitcoin$60,646.33▲0.44% Ether$1,701.87▲0.66% Solana$71.19▲1.13% XRP$0.951▲1.51% BNB$554.40▲0.15%

XRP Ledger Patches Decade-Old Flaw Allowing Unauthorized Token Creation

A critical vulnerability, discovered by researchers and confirmed by RippleX, could have circumvented XRP's fixed supply, prompting an emergency software update on September 25.

Key takeaways

  • A security flaw in the XRP Ledger, believed to date back to 2015, could have allowed attackers to create new XRP tokens without funding them.
  • The vulnerability exploited a calculation error within the ledger's built-in exchange when processing large, simultaneous transactions across multiple accounts.
  • RippleX, Ripple's developer arm, confirmed the bug but stated there is no evidence of its exploitation on any public network before the fix was deployed.

The XRP Ledger, the blockchain underpinning the XRP cryptocurrency, recently addressed a critical security flaw that could have permitted the creation of new XRP tokens, bypassing the network's fundamental fixed-supply rule. The vulnerability, which researchers believe has existed since 2015, was privately reported to RippleX, Ripple's developer arm, on September 22, leading to a swift, undisclosed patch three days later.

Discovered by researcher Cayden Liao and Veria AI, the bug allowed for the generation of spendable XRP without corresponding funds from the sender. RippleX engineers successfully reproduced the attack on a standalone server, confirming that the newly minted XRP could subsequently be used in transactions. Despite the severity of the flaw, RippleX has indicated that no evidence suggests the vulnerability was exploited on any public network.

How the Exploit Worked

The XRP Ledger was designed with a strict supply cap of 100 billion tokens, all of which were created at its launch in 2012. The identified flaw, however, threatened this foundational principle. The attack vector lay within the ledger's built-in exchange, a feature where accounts can post offers to swap one digital asset for another.

An attacker could theoretically initiate hundreds of accounts, each offering a minute amount of a distinct token in exchange for an unusually large quantity of XRP. By then sending a single payment designed to purchase all these offers simultaneously, the system would encounter a critical error. The total XRP amount owed would become too vast for the software to accurately compute.

In this scenario, the attacker's selling accounts would register as being paid in full, while the buying account would be debited almost nothing. This discrepancy would result in the attacker gaining XRP that did not previously exist within the system. The ledger's standard post-transaction checks, designed to prevent new XRP from appearing, would have relied on the miscounted total and thus failed to detect the unauthorized creation. Furthermore, a separate limit on the amount of XRP a single account can receive would not have been triggered, as the exploit distributed the newly generated XRP across numerous accounts. The researchers' method required only a few hundred XRP to open the necessary accounts, most of which could be recovered, along with transaction fees.

Why it matters

Maintaining a fixed supply is a cornerstone of XRP's economic model, a feature that institutions utilizing the network often rely upon for predictability and scarcity. A vulnerability allowing the arbitrary creation of tokens could have severely undermined trust in the XRP Ledger's integrity and devalued existing XRP holdings by increasing the total supply beyond its intended cap. Such an event could have had significant implications for XRP's market stability, currently trading around $1.405, and its broader adoption within financial services.

The incident also highlights a broader trend within the cryptocurrency space. This discovery joins a series of long-hidden security flaws in various crypto projects that have surfaced with the aid of artificial intelligence since July. These include a Coldcard wallet bug linked to the theft of at least 1,367 Bitcoin and vulnerabilities that prompted Core Lightning to advise Bitcoin node operators to disconnect. The increasing sophistication of security research, often augmented by AI, is bringing to light issues that have potentially lain dormant for years, underscoring the continuous need for robust auditing and rapid response protocols in decentralized systems.

What to watch

The prompt and discreet deployment of `xrpld 3.4.1`, the ledger's server software fix on September 25, without immediate public disclosure of the specific repair, demonstrates a common industry practice to prevent potential exploitation during the patching window. Moving forward, the crypto community will be observing if any further details emerge regarding the potential impact or if any forensic analysis reveals attempts at exploitation prior to the fix. The continued scrutiny of blockchain security, particularly with AI-assisted research, is likely to uncover additional legacy vulnerabilities across the crypto ecosystem, necessitating ongoing vigilance from developers and users alike.

Iboro William

About the author

Founder of Iboro Finance and FolioStack

Iboro William is the founder and editor of Iboro Finance and the builder behind FolioStack, a family of money apps: Samba for airtime, data and bills with Bitcoin cashback, the FolioTrack portfolio tracker, the FolioTrade crypto trading bot and EkpadFile, unlimited cloud storage with watch parties that bring families and loved ones together.

A data analyst by profession, he works daily with SQL, Snowflake and Power BI, and brings the same habit to his writing: read the numbers first, then draw the conclusion.

He has written five books on crypto, money and personal discipline, read by about 15,000 people in 86 countries. On Iboro Finance he explains markets, the economy and crypto for readers in Nigeria, across Africa and in the diaspora.