1. Home
  2. Vulnerabilities
  3. CVE-2017-20285

CVE-2017-20285

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

Published 5 Oct 2026 · modified 6 Oct 2026 · Sources: NVD, CNA (vendor or assigner), CERT-FR, EPSS (FIRST)

Medium 46/100

Summary

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 products and versions

No product provided by the sources yet.

Fix

Patchofficial source

Upgrade to YAML 1.30 or later.

Source : CNA (vendor or assigner)

Workaround

Workaroundofficial source

For deployments that cannot upgrade to YAML 1.30, set $YAML::LoadBlessed = 0 before loading untrusted input. The option exists from YAML 1.25.

Source : CNA (vendor or assigner)

Check whether you are affected

No verification method provided.

Timeline

  1. — CVE published (cve)
  2. — CERT-FR advisory (certfr:CERTFR-2026-AVI-1376)

CERT-FR advisories

References

Data provenance

Status
NVD
Publication date
NVD
Description
CNA (vendor or assigner)
CVSS score
CNA (vendor or assigner)
Weakness (CWE)
CNA (vendor or assigner)
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N (CVSS 3.1, CNA:134c704f-9b21-4f2e-91b3-4a467353bcc0)
Weakness
CWE-502 · Désérialisation

How this data is obtained and calculated