# GHSA-39vw-qp34-rmwf: Uncontrolled recursion leads to abort in deserialization

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2018-09-17T12:00:00.000Z
- Modified: 2023-11-08T04:14:33.650Z
- Also known as: RUSTSEC-2018-0005
- Weaknesses: CWE-674

## 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.

(As written by GitHub Advisory Database.)

## Affected

- serde_yaml (crates.io): from 0.6.0-rc1 before 0.8.4

## References

- <https://github.com/dtolnay/serde-yaml/pull/105> (web)
- <https://github.com/dtolnay/serde-yaml/commit/b93aff6e904cffbbfd1f421b82f6dcc5ca19a4fd> (web)
- <https://github.com/dtolnay/serde-yaml> (package)
- <https://rustsec.org/advisories/RUSTSEC-2018-0005.html> (advisory, web)
- <https://crates.io/crates/serde_yaml> (package)

## Sources

- GitHub Advisory Database: [GHSA-39vw-qp34-rmwf](https://github.com/advisories/GHSA-39vw-qp34-rmwf), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2018-0005](https://rustsec.org/advisories/RUSTSEC-2018-0005.html), CC0-1.0, modified 2023-11-08

---

Page: https://cve.day/GHSA-39vw-qp34-rmwf · Whole record: https://cve.day/GHSA-39vw-qp34-rmwf.json · Rebuilt by cve.day 2026-11-25T22:56:42.917Z
