GHSA-m325-rxjv-pwph: Messagepack rs Deserialization Functions Pass Uninitialized Memory Vulnerability
HIGHGHSA-m325-rxjv-pwph is a HIGH deserialization functions pass uninitialized memory vulnerability (General Security Weakness) affecting Messagepack rs libraries in the crates.io ecosystem. The issue involves deserialization functions pass uninitialized memory to user-provided read. Remediation is available in the latest vendor maintenance releases.
GHSA-m325-rxjv-pwph at a Glance
How to Fix GHSA-m325-rxjv-pwph
To remediate this vulnerability, upgrade all affected Messagepack rs 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 messagepack-rs to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for messagepack-rs
How to Check if You Are Affected
To determine whether your application is affected by GHSA-m325-rxjv-pwph, inspect your project dependencies for Messagepack rs:
inspect dependencies for messagepack-rs
Analyze the terminal output to locate any version of Messagepack rs in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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 General Security Weakness. In Messagepack rs, 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-m325-rxjv-pwph Affected Messagepack rs Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
messagepack-rs
|
crates.io |
≤ 0.8.1
|
|
References
Frequently Asked Questions
What is GHSA-m325-rxjv-pwph?
Which Messagepack rs versions are affected?
What version fixes GHSA-m325-rxjv-pwph?
Is messagepack-rs affected?
What CWE is associated with GHSA-m325-rxjv-pwph?
How can I check crates.io dependencies for GHSA-m325-rxjv-pwph?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-m325-rxjv-pwph",
"modified" : "2023-06-13T18:41:50Z",
"published" : "2022-06-17T00:11:41Z",
"aliases" : [ ],
"summary" : "Deserialization functions pass uninitialized memory to user-provided Read",
"details" : "Affected versions of this crate passed an uninitialized buffer to a\nuser-provided `Read` instance in:\n\n* `deserialize_binary`\n* `deserialize_string`\n* `deserialize_extension_others`\n* `deserialize_string_primitive`\n\nThis can result in safe `Read` implementations reading from the uninitialized\nbuffer leading to undefined behavior.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "messagepack-rs"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "0.8.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/otake84/messagepack-rs/issues/2"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/otake84/messagepack-rs"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2021-0092.html"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-06-17T00:11:41Z",
"nvd_published_at" : null
}
}