- Home
- Vulnerabilities
- 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
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
- — CVE published (cve)
- — CERT-FR advisory (certfr:CERTFR-2026-AVI-1376)
CERT-FR advisories
- CERTFR-2026-AVI-1376 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu (23 octobre 2026) 23 Oct 2026
References
- https://github.com/ingydotnet/yaml-pm/commit/471314bbdcbd62077eea32755929122aa8bd00a3.patchpatch
- https://github.com/ingydotnet/yaml-pm/commit/7736f38bd02e4f9f77d5468721e3be3d7b34a8ec.patchpatch
- https://github.com/ingydotnet/yaml-pm/issues/176issue-tracking
- https://metacpan.org/release/TINITA/YAML-1.30/changesrelease-notes
- http://www.openwall.com/lists/oss-security/2026/10/05/8
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