sadrobot

← Back to the monthly list

CVE-2017-20285

9.1 Critical

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