Skip to content
OpenAdvisories
Critical · 9.1 CVE-2017-20285 EUVD-2017-19016GHSA-c454-fc94-q86x

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

Published Oct 5, 2026 · Updated Oct 6, 2026 · Assigned by CPANSec

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.

Affected products

VendorProductAffectedFixed
— YAML < 1.30 1.30

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libyaml-perl 1.30-1 —
Debian 13 libyaml-perl 1.30-1 —
Debian 12 libyaml-perl 1.30-1 —
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS libyaml-perl 1.31-1ubuntu0.24.04.1 USN-8925-1
Ubuntu 22.04 LTS libyaml-perl 1.30-1ubuntu0.22.04.1 USN-8925-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 26.04 LTS libyaml-perl 1.31-1ubuntu0.26.04.1~esm1 USN-8925-1
Ubuntu Pro 20.04 LTS libyaml-perl 1.30-1ubuntu0.20.04.1~esm1 USN-8925-1
Ubuntu Pro 18.04 LTS libyaml-perl 1.24-1ubuntu0.1~esm1 USN-8925-1
Ubuntu Pro 16.04 LTS libyaml-perl 1.15-1ubuntu0.1~esm1 USN-8925-1
ReleasePackageFixed inAdvisory
RHEL 8 perl-YAML 1.24-4.module+el8.10.0+25073+d1062575 RHSA-2026:93471

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 perl-YAML 1.24-4.module_el8.10.0+4341+ab0ec422 ALSA-2026:93471

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 perl-YAML 1.24-4.module+el8.10.0+40403+bd06a93a RLSA-2026:93471
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed perl-YAML 1.321.0-2.1 openSUSE-SU-2026:12368-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 perl-YAML 0.84-5.amzn2.0.2 ALAS2-2026-4035

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 perl-YAML 1.24-4.module+el8.10.0+91104+33aeb071 ELSA-2026-93471

Advisories 8

References