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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:93471 patch vendor-advisory
- Red Hat Bugzilla 2545820 issue-tracking
- www.cve.org issue-tracking
- nvd.nist.gov
- github.com patch
- github.com patch
- github.com issue-tracking
- metacpan.org release-notes
- Debian Security Tracker CVE-2017-20285 vendor-advisory
- www.openwall.com
- ubuntu.com issue-tracking
- www.openwall.com issue-tracking
- blogs.perl.org issue-tracking
- ubuntu.com vendor-advisory
- ENISA EUVD EUVD-2017-19016 third-party-advisory