GHSA-xhj4-g6w8-2xjw go-zserio has Unbounded Memory Allocation for All Platforms
CriticalCVSS 9.8
- Published
- Updated
- Exploit status
- No public exploit known
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.
Workarounds
- Do not accept zserio data from non-trusted sources.
- Use secure transportation protocols (like TLS).
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| woven-planet github.com/woven-planet/go-zserio(Go) | < 0.9.1 | 0.9.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| woven-planet github.com/woven-planet/go-zserio(Go) | < 0.9.1 | 0.9.1 |
References
- github.com vendor-advisory
- github.com patch
- github.com product
- github.com