CVE-2017-20285

CRITICAL CVSS 3.1: 9.1 EPSS 0.34%
Updated Oct 06, 2026
YAML
Parameter Value
CVSS 9.1 (CRITICAL)
Affected Versions before 1.30
Type CWE-470, CWE-502 (Deserialization of Untrusted Data)
Vendor YAML
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
None
No disruption

CVSS Vector v3.1