Deserialization of Untrusted Data Affecting yaml-rust package, versions <0.4.1


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.1% (42nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Deserialization of Untrusted Data vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUST-YAMLRUST-6056571
  • published18 Dec 2018
  • disclosed11 Jun 2018
  • creditUnknown

Introduced: 11 Jun 2018

CVE-2018-20993  (opens in a new tab)
CWE-352  (opens in a new tab)

How to fix?

Upgrade yaml-rust to version 0.4.1 or higher.

Overview

yaml-rust is a Rust YAML 1.2 implementation, which enjoys the memory safety property and other benefits from the Rust language. The parser is heavily influenced by libyaml and yaml-cpp.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data. It did not prevent deep recursion while deserializing data structures. This allowed an attacker to make a YAML file with deeply nested structures that causes an abort while deserializing it.

NOTE: This vulnerability has also been identified as: CVE-2019-1010182

CVSS Scores

version 3.1