CVE-2023-34458 mx-chain-go's relayed transactions always increment nonce

High 7.1 Published Updated

Attackers can cause a limited denial of service on targeted accounts by exploiting a nonce increment bug in relayed transactions.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-34458?

CVE-2023-34458 is a high-severity denial of service vulnerability in multiversx mx-chain-go, published on 13 Jul 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

mx-chain-go is the official implementation of the MultiversX blockchain protocol, written in golang. When executing a relayed transaction, if the inner transaction failed, it would have increased the inner transaction's sender account nonce. This could have contributed to a limited DoS attack on a targeted account. The fix is a breaking change so a new flag `RelayedNonceFixEnableEpoch` was needed. This was a strict processing issue while validating blocks on a chain. This vulnerability has been patched in version 1.4.17.

Weakness: CWE-400

Which versions are affected by CVE-2023-34458?

3 open source packages ship an affected version, including github.com/multiversx/mx-chain-go. It affects 1 product.

PackageAffectedFixed in
github.com/multiversx/mx-chain-go GoAll versions1.4.17
github.com/multiversx/mx-chain-go GoAll versions1.4.17
github.com/multiversx/mx-chain-go GoAll versions1.4.17

Products include Multiversx Mx-Chain-Go.

How do I fix CVE-2023-34458?

Upgrade github.com/multiversx/mx-chain-go to 1.4.17 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2023-34458 being exploited?

There is no known exploitation of CVE-2023-34458 in the wild and no public exploit code.

Sources

Also known as GHSA-j494-7x2v-vvvp, GO-2023-1912.

Is CVE-2023-34458 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free