# GHSA-xhj4-g6w8-2xjw: go-zserio has Unbounded Memory Allocation for All Platforms

> An attacker can cause denial of service by providing crafted data with large size values, forcing excessive memory allocation in the go-zserio library.

- **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:** 24 Apr 2026
- **Also known as:** GO-2026-5759

## What is GHSA-xhj4-g6w8-2xjw?

GHSA-xhj4-g6w8-2xjw is a denial of service vulnerability in github.com/woven-planet/go-zserio, published on 24 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

### Impact

When deserializing arrays, strings or bytes (blob) types zserio first reads the size of the variable, and then allocates sufficient memory to load data. Since the size is always trusted this can be abused by creating a data file with a large size value, causing the zserio runtime to allocate large amounts of memory.

### Patches

Please apply [this commit](https://github.com/woven-by-toyota/go-zserio/commit/39ef1decde7e9766207794d396018776b33c6e45).

### Workarounds

- Do not accept zserio data from non-trusted sources.
- Use secure transportation protocols (like TLS).

## Which versions are affected by GHSA-xhj4-g6w8-2xjw?

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


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/woven-planet/go-zserio` | Go | All versions | 0.9.1 |
| `github.com/woven-planet/go-zserio` | Go | All versions | 0.9.1 |
| `github.com/woven-planet/go-zserio` | Go | All versions | 0.9.1 |

## How do I fix GHSA-xhj4-g6w8-2xjw?

Upgrade github.com/woven-planet/go-zserio to 0.9.1 or later.

## Is GHSA-xhj4-g6w8-2xjw being exploited?

There is no known exploitation of GHSA-xhj4-g6w8-2xjw in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-xhj4-g6w8-2xjw and fix it if it is affected.

What it is: GHSA-xhj4-g6w8-2xjw is a denial of service vulnerability in github.com/woven-planet/go-zserio, published on 24 Apr 2026. 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-xhj4-g6w8-2xjw in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/woven-planet/go-zserio (Go): affected all versions; fixed in 0.9.1
- github.com/woven-planet/go-zserio (Go): affected all versions; fixed in 0.9.1
- github.com/woven-planet/go-zserio (Go): affected all versions; fixed in 0.9.1

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-xhj4-g6w8-2xjw/ (Markdown: https://insights.sbomify.com/GHSA-xhj4-g6w8-2xjw/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-xhj4-g6w8-2xjw

---
From sbomify Insights: https://insights.sbomify.com/GHSA-xhj4-g6w8-2xjw/
Summaries are generated and may contain mistakes; the official description above is the record.
