CVE-2017-20285: YAML versions before 1.30 for Perl allow a loaded document to trigger the DESTROY method of arbitrary classes
Perl YAML before 1.30 lets a loaded document invoke DESTROY on arbitrary classes.
Stig Palmquist reported CVE-2017-20285 in the Perl YAML module, tracked on CPAN and GitHub as yaml-pm. Versions before 1.30 let a loaded YAML document trigger the DESTROY method of arbitrary classes. The notice does not say the flaw is being exploited.
- CVE-2017-20285 affects Perl YAML before 1.30.
- A loaded document can call DESTROY on arbitrary classes.
- No active exploitation is stated in the post.
Vulnerabilities mentionedAll →
- CVE-2017-202859.1—Unsafe deserialization in Perl YAML before 1.30published · Ingy döt Net YAML
| CVE | Vulnerability | CVSS | EPSS | Flags | Affected | Exposure | Published |
|---|---|---|---|---|---|---|---|
| CVE-2017-20285 | Unsafe deserialization in Perl YAML before 1.30 Perl YAML before 1.30 unsafely deserializes a document that uses a perl/hash:Class tag to bless a hash into a class named by the document. The document supplies the object's fields, and when the object later goes out of scope Perl calls that class's DESTROY method. What DESTROY does depends on classes already loaded in the process; with core File::Temp::Dir, the document can delete a directory tree it names. Any application that loads untrusted YAML with an affected YAML.pm is exposed to this object-injection behavior. No public proof-of-concept is known, the issue is not in CISA KEV, and in-the-wild exploitation has not been reported. Do: Upgrade the Perl YAML distribution to 1.30 or later. Until then, do not load untrusted YAML with the affected module, and treat documents that contain perl/hash tags as hostile. After upgrading, confirm applications no longer deserialize external YAML into live Perl objects. |
Posted by Stig Palmquist on Oct 05 ======================================================================== https://metacpan.org/dist/YAML https://github.com/ingydotnet/yaml-pm YAML versions before 1.30 for Perl allow a...
This source does not provide full text. Read it at seclists.org.