GHSA-39vw-qp34-rmwf Uncontrolled recursion leads to abort in deserialization
An attacker can cause a denial of service by providing a YAML file with self-referencing aliases, triggering uncontrolled recursion and aborting the application.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-39vw-qp34-rmwf?
GHSA-39vw-qp34-rmwf is a denial of service vulnerability in serde_yaml, published on 17 Sep 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Affected versions of this crate did not properly check for recursion while deserializing aliases.
This allows an attacker to make a YAML file with an alias referring to itself causing an abort.
The flaw was corrected by checking the recursion depth.
Which versions are affected by GHSA-39vw-qp34-rmwf?
3 open source packages ship an affected version, including serde_yaml.
| Package | Affected | Fixed in |
|---|---|---|
serde_yaml crates.io | From 0.6.0-rc1 | 0.8.4 |
serde_yaml crates.io | From 0.6.0-rc1 | 0.8.4 |
serde_yaml crates.io | From 0.6.0-rc1 | 0.8.4 |
How do I fix GHSA-39vw-qp34-rmwf?
Upgrade serde_yaml to 0.8.4 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-39vw-qp34-rmwf being exploited?
There is no known exploitation of GHSA-39vw-qp34-rmwf in the wild and no public exploit code.
Sources
Also known as RUSTSEC-2018-0005.