CVE-2017-20285

published 5 Oct 2026 · updated 6 Oct 2026

YAML versions before 1.30 for Perl allow a loaded document to trigger the DESTROY method of arbitrary classes

9.1CriticalCVSS 9.1EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 1.30.

YAML versions before 1.30 for Perl allow a loaded document to trigger the DESTROY method of arbitrary classes. A 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. What 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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
<1.301.30

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2017-20285 severity on Zeptric[![CVE-2017-20285](https://zeptric.io/badge/cve/CVE-2017-20285.svg)](https://zeptric.io/cve/CVE-2017-20285)