Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/ethereum/go-ethereum/core/vm
  4. ›
  5. CVE-2020-26241

CVE-2020-26241: Incorrect Calculation

June 29, 2021

Go Ethereum, or “Geth”, is the official Golang implementation of the Ethereum protocol. This is a Consensus vulnerability in Geth before version 1.9.17 which 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. This is fixed in version 1.9.17.

References

  • github.com/advisories/GHSA-69v6-xc2j-r2jf
  • github.com/ethereum/go-ethereum/commit/295693759e5ded05fec0b2fb39359965b60da785
  • github.com/ethereum/go-ethereum/security/advisories/GHSA-69v6-xc2j-r2jf
  • nvd.nist.gov/vuln/detail/CVE-2020-26241

Code Behaviors & Features

Detect and mitigate CVE-2020-26241 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.19.7

Fixed versions

  • 1.19.7

Solution

Upgrade to version 1.19.7 or above.

Impact 7.1 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L

Learn more about CVSS

Weakness

  • CWE-682: Incorrect Calculation

Source file

go/github.com/ethereum/go-ethereum/core/vm/CVE-2020-26241.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:18 +0000.