CVE-2022-36061 Elrond go can execute on same context checks in VM

Medium 6.5 Published Updated

Attackers can modify smart contract state via read-only calls, bypassing intended immutability constraints in the Elrond network.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-36061?

CVE-2022-36061 is a medium-severity vulnerability in ElrondNetwork elrond-go, published on 6 Sep 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Elrond go is the go implementation for the Elrond Network protocol. In versions prior to 1.3.35, read only calls between contracts can generate smart contracts results. For example, if contract A calls in read only mode contract B and the called function will make changes upon the contract's B state, the state will be altered for contract B as if the call was not made in the read-only mode. This can lead to some effects not designed by the original smart contracts programmers. This issue was patched in version 1.3.35. There are no known workarounds.

Weakness: CWE-665

Which versions are affected by CVE-2022-36061?

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

PackageAffectedFixed in
github.com/ElrondNetwork/elrond-go GoAll versions1.3.35
github.com/ElrondNetwork/elrond-go GoAll versions1.3.35
github.com/ElrondNetwork/elrond-go GoAll versions1.3.35

Products include Elrond Elrond Go.

How do I fix CVE-2022-36061?

Upgrade github.com/ElrondNetwork/elrond-go to 1.3.35 or later.

Is CVE-2022-36061 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-36061 exists.

Sources

Also known as GHSA-mv8x-668m-53fg, GO-2022-0971.

Is CVE-2022-36061 in your software?

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

Check your SBOMs for free