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

CVE-2018-12018: Improper Validation of Array Index

May 14, 2022 (updated February 8, 2023)

The GetBlockHeadersMsg handler in the LES protocol implementation in Go Ethereum (aka geth) before 1.8.11 may lead to an access violation because of an integer signedness error for the array index, which allows attackers to launch a Denial of Service attack by sending a packet with a -1 query.Skip value. The vulnerable remote node would be crashed by such an attack immediately, aka the EPoD (Ethereum Packet of Death) issue.

References

  • github.com/advisories/GHSA-p5gc-957x-gfw9
  • github.com/ethereum/go-ethereum/commit/a5237a27eaf81946a3edb4fafe13ed6359d119e4
  • github.com/ethereum/go-ethereum/pull/16891
  • github.com/ethereum/go-ethereum/releases/tag/v1.8.11
  • nvd.nist.gov/vuln/detail/CVE-2018-12018
  • pkg.go.dev/vuln/GO-2021-0075
  • web.archive.org/web/20180628022133/https://peckshield.com/2018/06/27/EPoD/

Code Behaviors & Features

Detect and mitigate CVE-2018-12018 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 before 1.8.11

Fixed versions

  • v1.8.11

Solution

Upgrade to version 1.8.11 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-129: Improper Validation of Array Index

Source file

go/github.com/ethereum/go-ethereum/les/CVE-2018-12018.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:30 +0000.