{"id":"RUSTSEC-2018-0006","summary":"Uncontrolled recursion leads to abort in deserialization","details":"Affected versions of this crate did not prevent deep recursion while\ndeserializing data structures.\n\nThis allows an attacker to make a YAML file with deeply nested structures\nthat causes an abort while deserializing it.\n\nThe flaw was corrected by checking the recursion depth.\n\nNote: `clap 2.33` is not affected by this because it uses `yaml-rust`\nin a way that doesn't trigger the vulnerability. More specifically:\n\n1. The input to the YAML parser is always trusted - is included at compile\ntime via `include_str!`.\n\n2. The nesting level is never deep enough to trigger the overflow in practice\n(at most 5).","aliases":["CVE-2018-20993","GHSA-hv87-47h9-jcvq"],"modified":"2023-11-08T04:00:13.493088Z","published":"2018-09-17T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/yaml-rust"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2018-0006.html"},{"type":"WEB","url":"https://github.com/chyh1990/yaml-rust/pull/109"}],"affected":[{"package":{"name":"yaml-rust","ecosystem":"crates.io","purl":"pkg:cargo/yaml-rust"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.4.1"}]}],"ecosystem_specific":{"affected_functions":null,"affects":{"os":[],"functions":[],"arch":[]}},"database_specific":{"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2018-0006.json","informational":null,"cvss":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","categories":[]}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}