CVE-2017-20285 Details
Description
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.
A vulnerability in YAML versions prior to 1.30 for Perl allows a loaded document to invoke the DESTROY method of arbitrary classes. This issue arises because a perl/hash:Class tag can bless a hash into the specified class, and when the object goes out of scope, Perl calls the DESTROY method. The impact of this vulnerability depends on the classes loaded in the process. For example, with the File::Temp::Dir class from core Perl, it could delete a directory tree specified by the document.
Upgrade to YAML version 1.30 or later. For deployments that cannot upgrade, set the $YAML::LoadBlessed option to 0 before loading untrusted input.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 5, 2026CISA-ADP
Assessed Oct 6, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/ingydotnet/yaml-pm/commit/471314bbdcbd62077eea32755929122aa8bd00a3.patch | CPANSec | Source CodeVendor |
| https://github.com/ingydotnet/yaml-pm/commit/7736f38bd02e4f9f77d5468721e3be3d7b34a8ec.patch | CPANSec | Source CodeVendor |
| https://github.com/ingydotnet/yaml-pm/issues/176 | CPANSec | ExploitIssue TrackingTechnical DescriptionVendor |
| https://metacpan.org/release/TINITA/YAML-1.30/changes | CPANSec | Release NotesVendor |
| http://www.openwall.com/lists/oss-security/2026/10/05/8 | CVE | Mailing List |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-470 | Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') | CPANSec |
| CWE-502 | Deserialization of Untrusted Data | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| YAML | < 1.30 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 6, 2026 | CVE Modified | CISA-ADP |
| Oct 5, 2026 | CVE Modified | CVE |
| Oct 5, 2026 | New CVE Received | CPANSec |
Volerion