GHSA-255r-3prx-mf99 `rmp-serde` `Raw` and `RawRef` may crash when receiving invalid UTF-8
An attacker can cause a denial of service by sending invalid UTF-8 data to applications using the rmp-serde library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-255r-3prx-mf99?
GHSA-255r-3prx-mf99 is a denial of service vulnerability in rmp-serde, published on 13 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Raw::from_utf8 expects valid UTF-8. If invalid UTF-8 is received it can cause the process to crash.Which versions are affected by GHSA-255r-3prx-mf99?
3 open source packages ship an affected version, including rmp-serde.
| Package | Affected | Fixed in |
|---|---|---|
rmp-serde crates.io | All versions | 1.1.1 |
rmp-serde crates.io | All versions | 1.1.1 |
rmp-serde crates.io | From 0.0.0-0 | 1.1.1 |
How do I fix GHSA-255r-3prx-mf99?
Upgrade rmp-serde to 1.1.1 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is GHSA-255r-3prx-mf99 being exploited?
There is no known exploitation of GHSA-255r-3prx-mf99 in the wild and no public exploit code.
Sources
Also known as RUSTSEC-2022-0092.