GHSA-m325-rxjv-pwph: Messagepack rs Deserialization Functions Pass Uninitialized Memory Vulnerability

HIGH
Published
Advisory Summary

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

CVE Identifier N/A
GHSA Identifier GHSA-m325-rxjv-pwph
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Messagepack rs
Package Ecosystem crates.io
Published Date
Last Updated

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.

messagepack-rs fixed: Latest secure release
Upgrade messagepack-rs to Latest secure release
Verify Direct and Transitive Dependencies

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

Affected versions of this crate passed an uninitialized buffer to a user-provided `Read` instance in: * `deserialize_binary` * `deserialize_string` * `deserialize_extension_others` * `deserialize_string_primitive` This can result in safe `Read` implementations reading from the uninitialized buffer leading to undefined behavior.

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?
GHSA-m325-rxjv-pwph is a security vulnerability in Messagepack rs involving Deserialization functions pass uninitialized memory to user-provided Read under General Security Weakness.
Which Messagepack rs versions are affected?
Affected versions include releases prior to current release patches across affected packages: messagepack-rs.
What version fixes GHSA-m325-rxjv-pwph?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is messagepack-rs affected?
Yes, messagepack-rs is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with GHSA-m325-rxjv-pwph?
GHSA-m325-rxjv-pwph is classified under General Security Weakness.
How can I check crates.io dependencies for GHSA-m325-rxjv-pwph?
Run the dependency tree command: 'inspect dependencies for messagepack-rs'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}