# GHSA-m6gx-rhvj-fh52: Denial of service in go-ethereum due to CVE-2020-28362

> An attacker can crash Ethereum nodes by exploiting a Go runtime flaw, requiring operators to rebuild with patched Go versions.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 29 Jun 2021
- **Also known as:** GO-2022-0392

## What is GHSA-m6gx-rhvj-fh52?

GHSA-m6gx-rhvj-fh52 is a denial of service vulnerability in github.com/ethereum/go-ethereum, published on 29 Jun 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

### Impact
Versions of Geth built with Go `<1.15.5` or `<1.14.12` are most likely affected by a critical DoS-related security vulnerability. The golang team has registered the underlying flaw as ‘CVE-2020-28362’.

We recommend all users to rebuild (ideally `v1.9.24`) with Go `1.15.5` or `1.14.12`, to avoid node crashes. Alternatively, if you are running binaries distributed via one of our official channels, we’re going to release `v1.9.24` ourselves built with Go `1.15.5`.

### Patches
This is not an issue in go-ethereum, rebuilding an older version with Go `1.15.5` or `1.14.12` will suffice to address the vulnerability. 

### Workarounds
Rebuilding with Go `1.15.5` or `1.14.12` will suffice to address the vulnerability. 

### References
- https://blog.ethereum.org/2020/11/12/geth_security_release/
- https://groups.google.com/g/golang-announce/c/NpBGTTmKzpM

### For more information
If you have any questions or comments about this advisory:
* Open an issue in [go-ethereum](https://github.com/ethereum/go-ethereum)
* Email us at [security@ethereum.org](mailto:security@ethereum.org)

## Which versions are affected by GHSA-m6gx-rhvj-fh52?

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


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/ethereum/go-ethereum` | Go | All versions | 1.9.24 |
| `github.com/ethereum/go-ethereum` | Go | All versions | 1.9.24 |
| `github.com/ethereum/go-ethereum` | Go | All versions | 1.9.24 |

## How do I fix GHSA-m6gx-rhvj-fh52?

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

## Is GHSA-m6gx-rhvj-fh52 being exploited?

There is no known exploitation of GHSA-m6gx-rhvj-fh52 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-m6gx-rhvj-fh52 and fix it if it is affected.

What it is: GHSA-m6gx-rhvj-fh52 is a denial of service vulnerability in github.com/ethereum/go-ethereum, published on 29 Jun 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-m6gx-rhvj-fh52 in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/ethereum/go-ethereum (Go): affected all versions; fixed in 1.9.24
- github.com/ethereum/go-ethereum (Go): affected all versions; fixed in 1.9.24
- github.com/ethereum/go-ethereum (Go): affected all versions; fixed in 1.9.24

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/GHSA-m6gx-rhvj-fh52/ (Markdown: https://insights.sbomify.com/GHSA-m6gx-rhvj-fh52/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-m6gx-rhvj-fh52

---
From sbomify Insights: https://insights.sbomify.com/GHSA-m6gx-rhvj-fh52/
Summaries are generated and may contain mistakes; the official description above is the record.
