CVE-2017-20285
Reported by cpansec · Published October 5, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| perl-YAML | errata.rockylinux.org | 0:1.24-4.module+el8.10.0+40403+df14587c.src, 0:1.24-4.module+el8.10.0+40403+df14587c.noarch, 0:1.24-4.module+el8.10.0+40403+bd06a93a.src, 0:1.24-4.module+el8.10.0+40403+bd06a93a.noarch, 0:1.24-4.module+el8.10.0+40403+9457ea6c.src, 0:1.24-4.module+el8.10.0+40403+9457ea6c.noarch, 0:1.24-4.module+el8.10.0+40403+94558160.src, 0:1.24-4.module+el8.10.0+40403+94558160.noarch |
| YAML | cpan.org | 1.30 |
| perl-YAML | Amazon Linux | 0.84-5.amzn2.0.2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| 0 | ||
| 0 | ||
| amazon:2 | perl-YAML | 0 |
Timeline
- Oct 5, 2026 EPSS Score (18 in total, the first dated here)
- Oct 5, 2026 Coalition ESS Score
- Oct 5, 2026 CVE Published
- Oct 6, 2026 CVE Updated
- Nov 11, 2026 Distribution Patch
- Nov 11, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2017-20285
vulnetix vdb fixes CVE-2017-20285
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2017-20285/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- issue-tracking
- patch
- patch
- release-notes
- http://www.openwall.com/lists/oss-security/2026/10/05/8 url