CVE-2018-12018 Go Ethereum LES protocol implementation vulnerable to Denial of Service

High 7.5 Published Updated

Attackers can crash Go Ethereum nodes by sending a malicious packet with a negative query value, causing a denial of service.

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

What is CVE-2018-12018?

CVE-2018-12018 is a high-severity vulnerability in n/a, published on 5 Jul 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-129

Which versions are affected by CVE-2018-12018?

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

PackageAffectedFixed in
github.com/ethereum/go-ethereum GoAll versions1.8.11
github.com/ethereum/go-ethereum GoAll versions1.8.11
github.com/ethereum/go-ethereum GoAll versions1.8.11

Products include Ethereum Go Ethereum.

How do I fix CVE-2018-12018?

Upgrade github.com/ethereum/go-ethereum to 1.8.11 or later.

Is CVE-2018-12018 being exploited?

There is no known exploitation of CVE-2018-12018 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-p5gc-957x-gfw9, GO-2021-0075.

Is CVE-2018-12018 in your software?

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

Check your SBOMs for free