CVE-2017-20285

Public on 2026-10-05
Modified on 2026-10-07
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.
Severity
Medium severity
Medium
See what this means
CVSS v3 Base Score
6.7
See breakdown

Affected Packages

Platform Package Release Date Advisory Status
Amazon Linux 2 - Core perl Not Affected
Amazon Linux 2023 perl Not Affected
Amazon Linux 2027 Preview perl Not Affected
Amazon Linux 2 - Core perl-YAML Pending Fix
Amazon Linux 2023 perl-YAML Not Affected
Amazon Linux 2027 Preview perl-YAML Not Affected
Amazon Linux 2023 perl-YAML-LibYAML Not Affected
Amazon Linux 2027 Preview perl-YAML-LibYAML Not Affected

CVSS Scores

Score Type Score Vector
Amazon Linux CVSSv3 6.7 CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H