Incorrect Calculation Affecting github.com/ethereum/go-ethereum/core/vm package, versions <1.9.7


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.08% (36th 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-GITHUBCOMETHEREUMGOETHEREUMCOREVM-1045822
  • published26 Nov 2020
  • disclosed26 Nov 2020
  • creditUnknown

Introduced: 26 Nov 2020

CVE-2020-26241  (opens in a new tab)
CWE-682  (opens in a new tab)

How to fix?

Upgrade github.com/ethereum/go-ethereum/core/vm to version 1.9.7 or higher.

Overview

github.com/ethereum/go-ethereum/core/vm is a Package that implements the Ethereum Virtual Machine.

Affected versions of this package are vulnerable to Incorrect Calculation. It can be used to cause a chain-split where vulnerable nodes reject the canonical chain. Geth's pre-compiled dataCopy (at 0x00...04) contract did a shallow copy on invocation. An attacker could deploy a contract that writes X to an EVM memory region R, then calls 0x00..04 with R as an argument, then overwrites R to Y, and finally invokes the RETURNDATACOPY opcode.When this contract is invoked, a consensus-compliant node would push X on the EVM stack, whereas Geth would push Y.

References

CVSS Scores

version 3.1