GHSA-255r-3prx-mf99 `rmp-serde` `Raw` and `RawRef` may crash when receiving invalid UTF-8

Not scored Published

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

It was found that 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.

PackageAffectedFixed in
rmp-serde crates.ioAll versions1.1.1
rmp-serde crates.ioAll versions1.1.1
rmp-serde crates.ioFrom 0.0.0-01.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.

Is GHSA-255r-3prx-mf99 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free