CVE-2017-20285
Arbitrary Code Execution in YAML for Perl via DESTROY Methods
Critical 9.1 No auth needed
Follow: this CVE We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 3.1
- 9.1
- EPSS
- 0.3% probability of exploitation in 30 days · percentile 29
- Auth required
- No
- Published
- Oct 5, 2026
- Updated
- Oct 6, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
What happens
YAML for Perl before version 1.30 allows a loaded document to trigger the DESTROY method of arbitrary classes. An attacker can craft a malicious YAML document that, when processed, executes arbitrary code through DESTROY methods of available classes such as File::Temp::Dir, enabling directory deletion or unauthorized actions.
Show the original NVD text
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.
What to do
Patch available · fixed versions: 1.30
Update YAML for Perl to version 1.30 or later.
- Check whether you run any of the affected products and follow the vendor advisory.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Official advisories
- Red Hat Security Advisory: perl-YAML:1.24 security update · Red Hat · RHSA-2026:93471 · Nov 13, 2026 High
- perl-YAML-1.321.0-2.1 on GA media · SUSE · openSUSE-SU-2026:12368-1 · Oct 30, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.