Live threats

All CVEs

CVE-2017-20285

Arbitrary Code Execution in YAML for Perl via DESTROY Methods

Critical 9.1 No auth needed

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
Weakness (CWE)
CWE-470, CWE-502
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.

Source text, unmodified. NVD.

What to do

Patch available · fixed versions: 1.30

Update YAML for Perl to version 1.30 or later.

Vendor advisory · metacpan.org ↗

  1. Check whether you run any of the affected products and follow the vendor advisory.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.