GHSA-255r-3prx-mf99: Rmp serde `rmp-serde` `Raw` And `RawRef` May Vulnerability
MODERATEGHSA-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
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.
Upgrade rmp-serde to 1.1.1
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
GHSA-255r-3prx-mf99 Affected Rmp serde Versions
1 component(s)| 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?
Which Rmp serde versions are affected?
What version fixes GHSA-255r-3prx-mf99?
Is rmp-serde affected?
What CWE is associated with GHSA-255r-3prx-mf99?
How can I check crates.io dependencies for GHSA-255r-3prx-mf99?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}