Skip to content
RareDollar
Technology

XRPL discloses a bug that could mint spendable XRP

A payment-engine overflow could have created XRP from nothing, and a Batch validation gap risked stalling validator consensus. Both are fixed, the report says.

Rare Dollar Newsroom 4 min read
A close-up of programming code displayed on a computer screen
Pexels

In this story

The XRP Ledger Foundation published a vulnerability disclosure report on 9 October covering two bugs fixed in xrpld 3.4.1, the reference server implementation of the XRP Ledger. One of them, an integer overflow in the payment engine, could have been used to create XRP that never should have existed and spend it like any other XRP. The other, a validation gap in the network’s Batch transaction feature, could have caused servers on different versions to disagree about the contents of a ledger. Neither was exploited on a public network, according to the report.

The payment engine bug was reported through the XRPL Bug Bounty program on 22 September. XRP balances are stored as integers with a fixed maximum. When a single payment consumes many offers from the order book, the engine sums the amounts it is about to move. If that sum exceeded the maximum, it did not fail with an error but wrapped around to a small number. The engine then paid each offer owner their full amount individually while charging the buyer only the wrapped-around total. The difference was new XRP.

The ledger’s own defence did not catch it. The XRP Ledger runs an invariant check that confirms no transaction creates XRP, but that check summed balance changes the same way the payment engine did, wrapped around identically, and detected nothing. In its incident timeline the foundation said RippleX engineering reproduced the mint on a standalone server, confirmed the minted XRP was spendable, and raised the severity from major to critical within a day of the report. The report notes that investigation suggests the bug had been present since the current payment engine was written in 2015. The fix shipped in xrpld 3.4.1, released on 25 September, and applies as soon as a server is upgraded. By the same day, more than 80% of default-UNL validators were running 3.4.1 or later.

The second bug concerns Batch, the feature defined by standard XLS-56 that lets one account submit up to eight transactions as a single unit. The specification requires each inner transaction to be wrapped in a field called RawTransaction, but the server never checked which field the wrapper actually used. Any object field without a template — such as Memo or EmittedTxn — could stand in for it, and the transaction would be accepted, applied and recorded. The report describes two consequences. On a network running mixed versions, an older server that recognised the wrapper field would accept and relay a transaction that a newer server could not deserialise, and would drop; if the older version held a clear majority of the unique node list, validators would disagree on the ledger and validation could stall. Separately, a malformed Batch transaction that reached the ledger would stay in history permanently, because a signed transaction cannot be edited after validation, and every SDK that assumes the canonical wrapper — the report names xrpl.js, xrpl-py and xrpl4j — would have needed a permanent carve-out.

That flaw did not allow an attacker to bypass signatures or take funds, and it could only be triggered by hand-crafting raw transaction binary, which no client library or normal workflow produces. The report says the issue first surfaced as finding F48 in the Sherlock Attackathon and was rated low; Denis Angell of the XRP Ledger Foundation confirmed during a re-verification pass on 18 September that an earlier fix in the BatchV1_1 amendment was incomplete, and Mayukha Vadari of RippleX then identified the cross-version consensus risk, which raised the severity to a pre-activation blocker.

Ripple and other validator operators responded by voting “no” on BatchV1_1 during 23–24 September, which reset its activation clock while a separate amendment carrying the fix was prepared. That fix, fixBatchV1_2, now makes the protocol return a temMALFORMED error when any element of the inner transaction array uses a wrapper other than RawTransaction, regardless of which fields a given server version defines. Both fixBatchV1_2 and BatchV1_1 became enabled on Mainnet on 9 October; the activation of the second is recorded on the network explorer. Neither amendment had been active on Mainnet when the flaw was found, so the report identifies no mainnet accounts or funds affected, and it says the same of the overflow bug.

Both fixes are in xrpld 3.4.1. Because the new amendment is now enabled, servers running older versions are amendment blocked and cannot stay in sync with the rest of the network, so operators must upgrade to maintain service. This is the second Batch-related disclosure this year: a separate report in February described a signature-validation flaw in the original Batch amendment, which was disabled in xrpld 3.1.1 and later replaced. The foundation also said it is adding a re-verification step to its release process, under which every security finding marked as fixed is retested against the release candidate and only closed once a test reproduces the original issue.

Sources

  1. XRPL: Vulnerability Disclosure Report for xrpld 3.4.1
  2. XRPL: Introducing XRP Ledger version 3.4.1
  3. XRPL: Vulnerability Disclosure Report: XRPL Batch Amendment – Unauthorized Inner Transaction Execution
  4. XRPL Livenet: fixBatchV1_2 amendment activation, 2026-10-09
Entities XRP

Call XRP in the Arena

Make your own call on this coin and get it graded after costs, against the same record as everyone else.

Make a call in the Arena