Incorrect Resource Transfer Between Spheres Affecting github.com/elrondnetwork/elrond-go/process/block/preprocess package, versions <1.3.50


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.11% (45th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMELRONDNETWORKELRONDGOPROCESSBLOCKPREPROCESS-3184337
  • published28 Dec 2022
  • disclosed28 Dec 2022
  • creditUnknown

Introduced: 28 Dec 2022

CVE-2022-46173  (opens in a new tab)
CWE-669  (opens in a new tab)

How to fix?

Upgrade github.com/ElrondNetwork/elrond-go/process/block/preprocess to version 1.3.50 or higher.

Overview

Affected versions of this package are vulnerable to Incorrect Resource Transfer Between Spheres due to a processing issue where nodes are affected when trying to process a cross-shard relayed transaction with a smart contract deploy transaction data. The problem is a bad correlation between the transaction caches and the processing component. If the above-mentioned transaction is sent with more gas than required, the smart contract result (SCR transaction) that should have returned the leftover gas, would have been wrongly added to a cache that the processing unit did not consider. The node stopped notarizing metachain blocks.

CVSS Base Scores

version 3.1