# GHSA-xc79-566c-j4qx: Parallax is vulnerable to DoS via malicious p2p message

> An attacker can cause a Parallax node to consume excessive memory and crash by sending a crafted peer-to-peer message exploiting an integer overflow.

- **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:** 10 Oct 2025
- **Also known as:** GO-2025-4019

## What is GHSA-xc79-566c-j4qx?

GHSA-xc79-566c-j4qx is a vulnerability in github.com/microstack-tech/parallax, published on 10 Oct 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

### Impact

A vulnerable node can be made to consume very large amounts of memory when handling specially crafted p2p messages sent from an attacker node.

In order to carry out the attack, the attacker establishes a peer connections to the victim, and sends a malicious `GetBlockHeadersRequest` message with a `count` of `0`, using the `Parallax` protocol.

In `descendants := chain.GetHeadersFrom(num+count-1, count-1)`, the value of `count-1` is passed to the function `GetHeadersFrom(number, count uint64)` as parameter `count`. Due to integer overflow, `UINT64_MAX` value is then passed as the `count` argument to function `GetHeadersFrom(number, count uint64)`. This allows an attacker to bypass `maxHeadersServe` and request all headers from the latest block back to the genesis block.

### Patches

The fix has been included in the Parallax client version `0.1.4` and onwards.

The vulnerability was patched in: https://github.com/microstack-tech/parallax/commit/f759e9090aaf00a43c616d7cbd133c44bb1ed01e

### Workarounds

No workarounds have been made public.

### Credit

This issue was disclosed responsibly by DongHan Kim via the Ethereum bug bounty program, the cooperation is appreciated.

## Which versions are affected by GHSA-xc79-566c-j4qx?

3 open source packages ship an affected version, including github.com/microstack-tech/parallax.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/microstack-tech/parallax` | Go | All versions | 0.1.4 |
| `github.com/microstack-tech/parallax` | Go | All versions | 0.1.4 |
| `github.com/microstack-tech/parallax` | Go | All versions | 0.1.4 |

## How do I fix GHSA-xc79-566c-j4qx?

Upgrade github.com/microstack-tech/parallax to 0.1.4 or later.

## Is GHSA-xc79-566c-j4qx being exploited?

There is no known exploitation of GHSA-xc79-566c-j4qx in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-xc79-566c-j4qx and fix it if it is affected.

What it is: GHSA-xc79-566c-j4qx is a vulnerability in github.com/microstack-tech/parallax, published on 10 Oct 2025. 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-xc79-566c-j4qx in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/microstack-tech/parallax (Go): affected all versions; fixed in 0.1.4
- github.com/microstack-tech/parallax (Go): affected all versions; fixed in 0.1.4
- github.com/microstack-tech/parallax (Go): affected all versions; fixed in 0.1.4

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-xc79-566c-j4qx/ (Markdown: https://insights.sbomify.com/GHSA-xc79-566c-j4qx/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-xc79-566c-j4qx

---
From sbomify Insights: https://insights.sbomify.com/GHSA-xc79-566c-j4qx/
Summaries are generated and may contain mistakes; the official description above is the record.
