CVE-2017-20285

EUVD-2017-19016
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.
Unsafe Reflection
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
9.1 CRITICAL
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Awaiting analysis
This vulnerability is currently awaiting analysis.
Base Score
CVSS 3.x
EPSS Score
Percentile: 28.06%
Debian logo
Debian Releases
Debian Product
Codename
libyaml-perl
bookworm
1.30-2
fixed
forky
1.321-1
fixed
sid
1.321-1
fixed
trixie
1.31-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
libyaml-perl
bionic
Fixed 1.24-1ubuntu0.1~esm1
released
focal
not-affected
jammy
not-affected
noble
not-affected
resolute
not-affected
xenial
Fixed 1.15-1ubuntu0.1~esm1
released
Amazon Linux logo
Amazon Linux Releases
Amazon Package
Release
perl-YAML
Amazon Linux 2
0:0.84-5.amzn2.0.2
fixed