Skip to content

CVE-2017-20285 YAML versions before 1.30 for Perl allow a loaded document to trigger the DESTROY method of arbitrary classes

CriticalCVSS 9.1 EPSS 0.34%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: total
Technology
UbuntuDebianRed Hat

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.

Upgrade path

8 packages: 6 fixed, 2 with no fix yet.

PackageAffectedFixed inStatus
redhat/perl-YAML(Red Hat rhel_els 7) All versions No fix listed No fix yet
redhat/perl-YAML:1.24-8100020261013125111.ae2fb4b8(Red Hat enterprise_linux 8) All versions No fix listed No fix yet
cpan YAML < 1.30 1.30 Fixed
debian/libyaml-perl(Debian 12) < 1.30-1 1.30-1 Fixed
debian/libyaml-perl(Debian 13) < 1.30-1 1.30-1 Fixed
debian/libyaml-perl(Debian 14) < 1.30-1 1.30-1 Fixed
ubuntu/libyaml-perl(Ubuntu Pro 16.04) < 1.15-1ubuntu0.1~esm1; = 1.13-1; = 1.15-1 1.15-1ubuntu0.1~esm1 Fixed
ubuntu/libyaml-perl(Ubuntu Pro 18.04) < 1.24-1ubuntu0.1~esm1; = 1.21-1; = 1.24-1 1.24-1ubuntu0.1~esm1 Fixed

Affected products

ProductAffected versionsFixed in
redhat/perl-YAML:1.24-8100020261013125111.ae2fb4b8(Red Hat:enterprise_linux:8) All versions No fix listed
redhat/perl-YAML(Red Hat:rhel_els:7) All versions No fix listed
debian/libyaml-perl(Debian:12) < 1.30-1 1.30-1
debian/libyaml-perl(Debian:13) < 1.30-1 1.30-1
debian/libyaml-perl(Debian:14) < 1.30-1 1.30-1
cpan YAML < 1.30 1.30
ubuntu/libyaml-perl(Ubuntu:Pro:16.04) < 1.15-1ubuntu0.1~esm1 1.15-1ubuntu0.1~esm1
ubuntu/libyaml-perl(Ubuntu:Pro:16.04) = 1.13-1 No fix listed
ubuntu/libyaml-perl(Ubuntu:Pro:16.04) = 1.15-1 No fix listed
ubuntu/libyaml-perl(Ubuntu:Pro:18.04) < 1.24-1ubuntu0.1~esm1 1.24-1ubuntu0.1~esm1
ubuntu/libyaml-perl(Ubuntu:Pro:18.04) = 1.21-1 No fix listed
ubuntu/libyaml-perl(Ubuntu:Pro:18.04) = 1.24-1 No fix listed

References