CVE-2017-20285
published critical CVSS 3.1 · 9.1YAML versions before 1.30 for Perl allow a loaded document to trigger the DESTROY method of arbitrary classes
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Not stated | — | YAML0 to < 1.30 · Other versions: unaffected | Affected | Not stated | CPANSec |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2-2026-4035 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| AlmaLinux | 8 | perl-YAML | Advisory build | 1.24-4.module_el8.10.0+4341+ab0ec422 | ALSA-2026:93471 |
| Oracle Linux | 8 | perl-YAMLaarch64 · perl-YAML · 1.24b | Advisory build | 0:1.24-4.module+el8.10.0+91104+33aeb071 | ELSA-2026-93471 |
| Red Hat Enterprise Linux | RHEL-8 | perl-YAMLnoarch | Advisory build | 1.24-4.module+el8.10.0+25073+42d87e53 | RHSA-2026:93471 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-YAMLaarch64 | Advisory build | 1.321.0-2.1 | OPENSUSE-SU-2026:12368-1 |
Show 15 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | bionic | libyaml-perl | Advisory build | 1.24-1ubuntu0.1~esm1 | USN-8925-1 |
| Amazon Linux | AL2 | perl-YAMLnoarch | Listed in advisory | Not stated | ALAS2-2026-4035 |
| Rocky Linux | 8 | perl-YAMLnoarch | Listed in advisory | Not stated | RLSA-2026:93471 |
| Oracle Linux | 8 | perl-YAMLaarch64 · perl-YAML · 1.24b | Advisory build | 0:1.24-4.module+el8.10.0+91104+f3b3492f | ELSA-2026-93471 |
| Oracle Linux | 8 | perl-YAMLx86_64 · perl-YAML · 1.24b | Advisory build | 0:1.24-4.module+el8.10.0+91104+33aeb071 | ELSA-2026-93471 |
| Oracle Linux | 8 | perl-YAMLx86_64 · perl-YAML · 1.24b | Advisory build | 0:1.24-4.module+el8.10.0+91104+f3b3492f | ELSA-2026-93471 |
| Red Hat Enterprise Linux | RHEL-8 | perl-YAMLnoarch | Advisory build | 1.24-4.module+el8.10.0+25073+d1062575 | RHSA-2026:93471 |
| Red Hat Enterprise Linux | RHEL-8 | perl-YAMLsrc | Advisory build | 1.24-4.module+el8.10.0+25073+42d87e53 | RHSA-2026:93471 |
| Red Hat Enterprise Linux | RHEL-8 | perl-YAMLsrc | Advisory build | 1.24-4.module+el8.10.0+25073+d1062575 | RHSA-2026:93471 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-YAMLppc64le | Advisory build | 1.321.0-2.1 | OPENSUSE-SU-2026:12368-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-YAMLs390x | Advisory build | 1.321.0-2.1 | OPENSUSE-SU-2026:12368-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-YAMLx86_64 | Advisory build | 1.321.0-2.1 | OPENSUSE-SU-2026:12368-1 |
| Ubuntu | xenial | libyaml-perl | Advisory build | 1.15-1ubuntu0.1~esm1 | USN-8925-1 |
| Amazon Linux | AL2 | perl-YAMLsrc | Listed in advisory | Not stated | ALAS2-2026-4035 |
| Rocky Linux | 8 | perl-YAMLsrc | Listed in advisory | Not stated | RLSA-2026:93471 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.1 / 10
- Severity
- critical
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| YAML | 0 to < 1.30 (affected · custom)Default: unaffected | CPANSec · cna |
Weaknesses
2- CWE-502 CWE-502 Deserialization of Untrusted Data
- CWE-470 CWE-470 Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')
References
5- http://www.openwall.com/lists/oss-security/2026/10/05/8
- https://github.com/ingydotnet/yaml-pm/commit/471314bbdcbd62077eea32755929122aa8bd00a3.patch
- https://github.com/ingydotnet/yaml-pm/commit/7736f38bd02e4f9f77d5468721e3be3d7b34a8ec.patch
- https://github.com/ingydotnet/yaml-pm/issues/176
- https://metacpan.org/release/TINITA/YAML-1.30/changes
Provider assertions
3CPANSec · cna
YAML versions before 1.30 for Perl allow a loaded document to trigger the DESTROY method of arbitrary classes
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e5d0ad58e0d586269485914b9e6456a8f6f1a3998f33e0e2f319bc92e325072c
- Ingested
- 06 Oct 2026, 18:42:18 UTC
- Source record
- Official CVE record