YAML versions before 1.30 for Perl allow a loaded document to trigger the DESTROY method of arbitrary classes
Summary
| CVE | CVE-2017-20285 |
|---|---|
| State | PUBLISHED |
| Assigner | CPANSec |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-10-05 07:16:29 UTC |
| Updated | 2026-10-06 17:17:08 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 9.1 CRITICAL from ADP
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS: 0.001840000 probability, percentile 0.072500000 (date 2026-10-06)
Problem Types: CWE-470 | CWE-502 | CWE-502 CWE-502 Deserialization of Untrusted Data | CWE-470 CWE-470 Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | ADP | DECLARED | 9.1 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| 3.1 | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | Secondary | 9.1 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
NoneCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
There are no known software configurations currently associated with this CVE in NVD or the CVE Program record.
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/ingydotnet/yaml-pm/issues/176 | 9b29abf9-4ab0-4765-b253-1875cd9b441e | github.com | |
| metacpan.org/release/TINITA/YAML-1.30/changes | 9b29abf9-4ab0-4765-b253-1875cd9b441e | metacpan.org | |
| github.com/ingydotnet/yaml-pm/commit/7736f38bd02e4f9f77d5468721e3be3d7b3... | 9b29abf9-4ab0-4765-b253-1875cd9b441e | github.com | |
| github.com/ingydotnet/yaml-pm/commit/471314bbdcbd62077eea32755929122aa8b... | 9b29abf9-4ab0-4765-b253-1875cd9b441e | github.com | |
| www.openwall.com/lists/oss-security/2026/10/05/8 | af854a3a-2127-422b-91ae-364da2661108 | www.openwall.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2017-05-10T00:00:00.000Z | Issue reported. |
| CNA | 2018-05-11T00:00:00.000Z | Version 1.25 released with the $YAML::LoadBlessed option. |
| CNA | 2020-01-27T00:00:00.000Z | Version 1.30 released with the option defaulting to off. |
| CNA | 2022-06-27T00:00:00.000Z | Issue added as CPANSA-YAML-2017-01 in the CPAN::Audit database. |
| CNA | 2026-09-21T00:00:00.000Z | CVE number reserved. |
Solutions
CNA: Upgrade to YAML 1.30 or later.
Workarounds
CNA: For deployments that cannot upgrade to YAML 1.30, set $YAML::LoadBlessed = 0 before loading untrusted input. The option exists from YAML 1.25.
There are currently no legacy QID mappings associated with this CVE.