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

CVE-2020-26241: Shallow copy bug in geth

June 29, 2021 (updated January 30, 2025)

This is a Consensus vulnerability, 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,
  • calls 0x00..04 with R as an argument,
  • 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

  • blog.ethereum.org/2020/11/12/geth_security_release
  • github.com/advisories/GHSA-69v6-xc2j-r2jf
  • github.com/ethereum/go-ethereum
  • 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. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.9.7 before 1.9.17

Fixed versions

  • 1.9.17

Solution

Upgrade to version 1.9.17 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/CVE-2020-26241.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:15:14 +0000.