Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. yaml-rust
  4. ›
  5. CVE-2018-20993

CVE-2018-20993: Uncontrolled recursion in rust-yaml

August 25, 2021 (updated June 13, 2023)

Affected versions of this crate did not prevent deep recursion while deserializing data structures. This allows an attacker to make a YAML file with deeply nested structures that causes an abort while deserializing it. The flaw was corrected by checking the recursion depth.

References

  • github.com/advisories/GHSA-hv87-47h9-jcvq
  • github.com/chyh1990/yaml-rust
  • github.com/chyh1990/yaml-rust/commit/d61b49cb90391fc4f7f72a1abe597476c8651a07
  • github.com/chyh1990/yaml-rust/pull/109
  • nvd.nist.gov/vuln/detail/CVE-2018-20993
  • rustsec.org/advisories/RUSTSEC-2018-0006.html

Code Behaviors & Features

Detect and mitigate CVE-2018-20993 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.4.1

Fixed versions

  • 0.4.1

Solution

Upgrade to version 0.4.1 or above.

Impact 7.5 HIGH

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-674: Uncontrolled Recursion

Source file

cargo/yaml-rust/CVE-2018-20993.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:08 +0000.