Description
YamlDotNet through 18.1.0 contains an uncontrolled recursion vulnerability in YamlSequenceNode and YamlMappingNode GetHashCode that allows unauthenticated remote attackers to crash applications using YamlStream.Load. Attackers can supply a tiny YAML document with a self-aliasing anchored sequence used as a mapping key, triggering an uncatchable StackOverflowException that terminates the hosting process.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| aaubry | YamlDotNet | 0 ≤18.1.0 | — |
References
- https://github.com/YamlDotNet/YamlDotNet/blob/v18.1.0/YamlDotNet/RepresentationModel/YamlNode.cs#L65-L101
- https://github.com/YamlDotNet/YamlDotNet/blob/v18.1.0/YamlDotNet/RepresentationModel/YamlSequenceNode.cs#L203-L212
- https://github.com/YamlDotNet/YamlDotNet/blob/v18.1.0/YamlDotNet/RepresentationModel/YamlMappingNode.cs#L76-L82
- https://www.vulncheck.com/advisories/yamldotnet-through-18.1.0-uncontrolled-recursion-via-self-aliasing-mapping-key