{"id":"CVE-2017-20285","title":"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","summary":"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 DESTR…","severity":"none","cwe":["CWE-470","CWE-502"],"product":"YAML","affected":["YAML < 1.30"],"published":"2026-10-05","updated":"2026-10-05","sourceUpdated":"2026-10-05T07:16:29.017","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2017-20285","references":[{"url":"https://github.com/ingydotnet/yaml-pm/commit/471314bbdcbd62077eea32755929122aa8bd00a3.patch","label":"9b29abf9-4ab0-4765-b253-1875cd9b441e"},{"url":"https://github.com/ingydotnet/yaml-pm/commit/7736f38bd02e4f9f77d5468721e3be3d7b34a8ec.patch","label":"9b29abf9-4ab0-4765-b253-1875cd9b441e"},{"url":"https://github.com/ingydotnet/yaml-pm/issues/176","label":"9b29abf9-4ab0-4765-b253-1875cd9b441e"},{"url":"https://metacpan.org/release/TINITA/YAML-1.30/changes","label":"9b29abf9-4ab0-4765-b253-1875cd9b441e"}],"tags":["nvd","cve.org"],"ingestedAt":"2026-10-05T07:14:48.254Z","slug":"CVE-2017-20285","body":"## Overview\n\nYAML 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.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"sunlit","depthScore":3,"depthScoreParts":{"impact":2.8,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}