CVE-2017-20285

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

  • Critical 9.1

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.

Key facts

Published
5 Oct 2026
Last changed
6 Oct 2026
Assigned by
CPANSec
EPSS
0.34% likely to be exploited in the next 30 days, higher than 27.903% of CVEs (scores for 17 Nov 2026)
SSVC (CISA)
Exploitation: none; Automatable: yes; Technical impact: total

Severity scores

Each score is shown as its source gave it. They are not averaged or merged.

  • 9.1CVSS 3.1, Criticalfrom CISA (ADP container)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

What to do

  • Upgrade to YAML 1.30 or later.CNA solution statement
  • For deployments that cannot upgrade to YAML 1.30, set $YAML::LoadBlessed = 0 before loading untrusted input. The option exists from YAML 1.25.CNA workaround statement

Historical context and remediation

This reference retains the original CVE publication date. A recent record update does not mean a new attack occurred.

No separately sourced impact summary is available on this page yet. Consult the description, version data and dated exploitation evidence.

Version statuses below come from the CNA. An “unaffected” version is not necessarily a currently supported release or proof of a patch date. EPSS is a dated risk estimate, not a count of historical attacks.

Read the original CVE record.

Timeline

  1. 10 May 2017 Issue reported.
  2. 11 May 2018 Version 1.25 released with the $YAML::LoadBlessed option.
  3. 27 Jan 2020 Version 1.30 released with the option defaulting to off.
  4. 27 Jun 2022 Issue added as CPANSA-YAML-2017-01 in the CPAN::Audit database.
  5. 21 Sep 2026 CVE number reserved.
  6. 5 Oct 2026 Published

Weakness

References