GHSA-fpf5-4jw8-67x8: Rust zserio Rust-zserio Has Unbounded Memory Allocation Vulnerability
HIGHGHSA-fpf5-4jw8-67x8 is a HIGH (CVSS 7.5) rust-zserio has unbounded memory allocation vulnerability (CWE-789: Memory Allocation with Excessive Size Value) affecting Rust zserio libraries in the crates.io ecosystem. The issue involves rust-zserio has unbounded memory allocation. Remediation is available by upgrading affected packages to version 0.5.4.
GHSA-fpf5-4jw8-67x8 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix GHSA-fpf5-4jw8-67x8
To remediate this vulnerability, upgrade all affected Rust zserio dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade rust-zserio to 0.5.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for rust-zserio
How to Check if You Are Affected
To determine whether your application is affected by GHSA-fpf5-4jw8-67x8, inspect your project dependencies for Rust zserio:
inspect dependencies for rust-zserio
Analyze the terminal output to locate any version of Rust zserio in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.5.4), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-789: Memory Allocation with Excessive Size Value, where the product allocates memory based on an untrusted, large size value, but it does not ensure that the size is within expected limits, allowing arbitrary amounts of memory to be allocated. In Rust zserio, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-fpf5-4jw8-67x8 Affected Rust zserio Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
rust-zserio
|
crates.io |
< 0.5.4
|
0.5.4
|
References
Frequently Asked Questions
What is GHSA-fpf5-4jw8-67x8?
Which Rust zserio versions are affected?
What version fixes GHSA-fpf5-4jw8-67x8?
Is rust-zserio affected?
What is the CVSS score of GHSA-fpf5-4jw8-67x8?
What CWE is associated with GHSA-fpf5-4jw8-67x8?
How can I check crates.io dependencies for GHSA-fpf5-4jw8-67x8?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-fpf5-4jw8-67x8",
"modified" : "2026-05-07T01:54:57Z",
"published" : "2026-05-07T01:54:57Z",
"aliases" : [ ],
"summary" : "rust-zserio has Unbounded Memory Allocation",
"details" : "### Impact\n\nWhen 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.\n\n### Patches\n\nPlease cherry-pick [57f5fb](https://github.com/Danaozhong/rust-zserio/commit/57f5fb4a2a8611d58dbcc1a9221349206dd99c3c).\n\n### Workarounds\n\n- Do not accept `zserio`-encoded messages from non-trusted sources.\n- Allocate a maximum heap amount to `rust-zerio` to avoid impacting other applications.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "rust-zserio"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.5.4"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.5.3"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/Danaozhong/rust-zserio/security/advisories/GHSA-fpf5-4jw8-67x8"
}, {
"type" : "WEB",
"url" : "https://github.com/ndsev/zserio/security/advisories/GHSA-cwq5-8pvq-j65j"
}, {
"type" : "WEB",
"url" : "https://github.com/Danaozhong/rust-zserio/commit/57f5fb4a2a8611d58dbcc1a9221349206dd99c3c"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/Danaozhong/rust-zserio"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-789" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-07T01:54:57Z",
"nvd_published_at" : null
}
}