GHSA-255r-3prx-mf99: Rmp serde `rmp-serde` `Raw` And `RawRef` May Vulnerability

MODERATE
Published
Advisory Summary

GHSA-255r-3prx-mf99 is a MODERATE `rmp-serde` `raw` and `rawref` may vulnerability (General Security Weakness) affecting Rmp serde libraries in the crates.io ecosystem. The issue involves `rmp-serde` `raw` and `rawref` may crash when receiving invalid utf-8. Remediation is available by upgrading affected packages to version 1.1.1.

GHSA-255r-3prx-mf99 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-255r-3prx-mf99
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Rmp serde
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-255r-3prx-mf99

To remediate this vulnerability, upgrade all affected Rmp serde dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

rmp-serde fixed: 1.1.1
Upgrade rmp-serde to 1.1.1
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 rmp-serde

How to Check if You Are Affected

To determine whether your application is affected by GHSA-255r-3prx-mf99, inspect your project dependencies for Rmp serde:

inspect dependencies for rmp-serde

Analyze the terminal output to locate any version of Rmp serde in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.1), 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 Rmp serde, 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

It was found that `Raw::from_utf8` expects valid UTF-8. If invalid UTF-8 is received it can cause the process to crash.

GHSA-255r-3prx-mf99 Affected Rmp serde Versions

1 component(s)
Fixed Versions:
1.1.1
Product / Package Ecosystem Affected Versions Fixed Version
rmp-serde
crates.io
< 1.1.1
1.1.1

References

Frequently Asked Questions

What is GHSA-255r-3prx-mf99?
GHSA-255r-3prx-mf99 is a security vulnerability in Rmp serde involving `rmp-serde` `Raw` and `RawRef` may crash when receiving invalid UTF-8 under General Security Weakness.
Which Rmp serde versions are affected?
Affected versions include releases prior to 1.1.1 across affected packages: rmp-serde.
What version fixes GHSA-255r-3prx-mf99?
Upgrading to 1.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is rmp-serde affected?
Yes, rmp-serde is affected in releases prior to 1.1.1. Upgrade your dependency to 1.1.1 or later.
What CWE is associated with GHSA-255r-3prx-mf99?
GHSA-255r-3prx-mf99 is classified under General Security Weakness.
How can I check crates.io dependencies for GHSA-255r-3prx-mf99?
Run the dependency tree command: 'inspect dependencies for rmp-serde'. 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-255r-3prx-mf99",
  "modified" : "2023-03-22T22:21:49Z",
  "published" : "2023-03-22T22:21:49Z",
  "aliases" : [ ],
  "summary" : "`rmp-serde` `Raw` and `RawRef` may crash when receiving invalid UTF-8",
  "details" : "It was found that `Raw::from_utf8` expects valid UTF-8. If invalid UTF-8 is received it can cause the process to crash.\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "rmp-serde"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/3Hren/msgpack-rust/issues/305"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/3Hren/msgpack-rust"
  }, {
    "type" : "WEB",
    "url" : "https://rustsec.org/advisories/RUSTSEC-2022-0092.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-03-22T22:21:49Z",
    "nvd_published_at" : null
  }
}