---
title: "GHSA-xhj4-g6w8-2xjw: go-zserio has Unbounded Memory Allocation for All Platforms"
url: https://erroneo.us/security/ghsa/GHSA-xhj4-g6w8-2xjw/
description: "GHSA-xhj4-g6w8-2xjw (critical, Go): go-zserio has Unbounded Memory Allocation for All Platforms. Impact When deserializing arrays, strings or bytes (blob)…"
type: advisory
section: "Security Digest"
date_published: 2026-04-24
date_modified: 2026-04-24
publisher: erroneo.us
author: erroneo.us Security Desk
ghsa: "GHSA-xhj4-g6w8-2xjw"
license: All rights reserved. Quote with attribution and a link.
---

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

## Affected packages

- Go `github.com/woven-planet/go-zserio` < 0.9.1 → fixed: 0.9.1

## Details

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. Workarounds - Do not accept zserio data from non-trusted sources. - Use secure transportation protocols (like TLS).

## Sources

- [GitHub Advisory GHSA-xhj4-g6w8-2xjw](https://github.com/advisories/GHSA-xhj4-g6w8-2xjw)
- [github.com](https://github.com/woven-by-toyota/go-zserio/security/advisories/GHSA-xhj4-g6w8-2xjw)
- [github.com](https://github.com/woven-by-toyota/go-zserio/commit/39ef1decde7e9766207794d396018776b33c6e45)

---
Source page: https://erroneo.us/security/ghsa/GHSA-xhj4-g6w8-2xjw/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
