NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Rust (crates.io)

GHSA-fpf5-4jw8-67x8: rust-zserio has Unbounded Memory Allocation

highCVSS 3.1 7.5

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 cherry-pick 57f5fb.

Published May 7, 2026

Affected packages

rust-zserio

Ecosystem
Rust (crates.io)
Affected
<= 0.5.3
Fixed in
0.5.4
Check
cargo tree -i rust-zserio

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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 cherry-pick 57f5fb.

Workarounds

  • Do not accept zserio-encoded messages from non-trusted sources.
  • Allocate a maximum heap amount to rust-zerio to avoid impacting other applications.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology