CVE-2017-20285
AI summary
YAML for Perl before 1.30 lets a loaded document trigger the DESTROY method of arbitrary classes via a perl/hash:Class tag. Impact depends on loaded classes; with core Perl's File::Temp::Dir, a directory tree named in the document can be deleted. Critical (CVSS 9.1), remotely exploitable without authentication when parsing untrusted YAML; upgrade to 1.30.
Official 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.
- Published
- 2026-10-05 07:16 UTC
- Modified
- 2026-10-06 17:17 UTC
- CVSS
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N - EPSS
- 0.34% (percentile 20)
- ENISA EUVD
- EUVD-2017-19016
- CWE
- CWE-470
CVSS vector
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- none
- Scope
- unchanged
- Confidentiality
- high
- Integrity
- high
- Availability
- none
References
- NVD · CVE.org
- github.com
https://github.com/ingydotnet/yaml-pm/commit/471314bbdcbd62077eea32755929122aa8bd00a3.patch - github.com
https://github.com/ingydotnet/yaml-pm/commit/7736f38bd02e4f9f77d5468721e3be3d7b34a8ec.patch - github.com
https://github.com/ingydotnet/yaml-pm/issues/176 - metacpan.org
https://metacpan.org/release/TINITA/YAML-1.30/changes - www.openwall.com
http://www.openwall.com/lists/oss-security/2026/10/05/8