Advisory

GHSA-fpf5-4jw8-67x8

Also known as: None

Summary

rust-zserio has Unbounded Memory Allocation

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 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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-05-07 01:54 UTC
Modified
2026-05-07 02:02 UTC

Affected packages and fixes

rust-zserio

crates.io · All systems

Affected

  • introduced 0, fixed 0.5.4 (semver)

Fixed versions

0.5.4

Fix

  • Fixed version 0.5.4
    cargo update -p rust-zserio --precise 0.5.4

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences