{"id":"CVE-2017-20285","published":"2026-10-05T06:49:17Z","modified":"2026-10-06T17:02:58Z","title":"YAML versions before 1.30 for Perl allow a loaded document to trigger the DESTROY method of arbitrary classes","vendor":null,"product":null,"tier":"tail","description":{"text":"YAML versions before 1.30 for Perl allow a loaded document to trigger the DESTROY method of arbitrary classes.\n\nA perl/hash:Class tag blesses a hash into the class it names. The document supplies the object's fields, and Perl calls DESTROY when it goes out of scope.\n\nWhat DESTROY does depends on the classes the process has loaded. With File::Temp::Dir from core Perl, it can delete a directory tree the document names.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.0034,"percentile":0.28195,"provenance":"source"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"},{"id":"CWE-470","name":"Use of Externally-Controlled Input to Select Classes or Code"}],"references":[{"url":"https://github.com/ingydotnet/yaml-pm/issues/176","tags":["issue-tracking"]},{"url":"https://github.com/ingydotnet/yaml-pm/commit/471314bbdcbd62077eea32755929122aa8bd00a3.patch","tags":["patch"]},{"url":"https://github.com/ingydotnet/yaml-pm/commit/7736f38bd02e4f9f77d5468721e3be3d7b34a8ec.patch","tags":["patch"]},{"url":"https://metacpan.org/release/TINITA/YAML-1.30/changes","tags":["release-notes"]},{"url":"http://www.openwall.com/lists/oss-security/2026/10/05/8","tags":[]}],"priority":{"score":12.0,"factors":[{"name":"EPSS percentile","points":5.64},{"name":"CVSS severity","points":6.37}]},"affectedVersions":[{"vendor":null,"product":null,"versions":["< 1.30"]}],"solutions":{"items":["Upgrade to YAML 1.30 or later."],"from":"CVE.org CNA","provenance":"source"},"workarounds":{"items":["For deployments that cannot upgrade to YAML 1.30, set $YAML::LoadBlessed = 0 before loading untrusted input. The option exists from YAML 1.25."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-10-06T17:02:52.193961Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2017-19016","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-cve-2017-20285-family-cve-2017-20285","children":[{"from":"CVE-2017-20285","to":"CVE-2019-25777","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/YAML/Types.pm"],"commits":["https://github.com/ingydotnet/yaml-pm/commit/471314bbdcbd62077eea32755929122aa8bd00a3","https://github.com/ingydotnet/yaml-pm/commit/7736f38bd02e4f9f77d5468721e3be3d7b34a8ec","https://github.com/ingydotnet/yaml-pm/commit/bace96b5e6661d521c7c515c94a09e081c911fce"],"basis":"shared function","functions":["yaml_load"]}]}]}}