Two Perl YAML flaws cover variable overwrite and DESTROY
First coverage.
Stig Palmquist disclosed two Perl YAML bugs: before 1.27_001 package variables can be overwritten, and before 1.30 DESTROY can run on arbitrary classes.
On 5 October 2026, oss-security posts from Stig Palmquist described two vulnerabilities in the Perl YAML module, tracked on CPAN and GitHub as yaml-pm. CVE-2019-25777 affects versions before 1.27_001: loading a perl/glob document can replace any package variable, which the advisory says can lead to arbitrary code execution. CVE-2017-20285 affects versions before 1.30 and lets a loaded YAML document trigger the DESTROY method of arbitrary classes. Neither notice says the flaws are being exploited. The reports do not conflict; they cover different CVEs, version cutoffs, and mechanisms in the same module.
- CVE-2019-25777 affects Perl YAML versions before 1.27_001.
- Loading a perl/glob document can replace any package variable and, per the advisory, can lead to arbitrary code execution.
- CVE-2017-20285 affects Perl YAML versions before 1.30, tracked on CPAN and GitHub as yaml-pm.
- A loaded YAML document can trigger the DESTROY method of arbitrary classes.
- Both issues were reported by Stig Palmquist in oss-security posts on 2026-10-05.
- Neither post reports observed or active exploitation.
- Products
- YAML
Coverage
oldest first · one row per article · UTCCVE-2019-25777: YAML versions before 1.27_001 for Perl allow a loaded perl/glob document to replace any package variable, which can lead to arbitrary code execution
Perl YAML before 1.27_001 can overwrite package variables and enable code execution.
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.
Vulnerabilities in this story
All| CVE | Vulnerability | CVSS | EPSS | Signals | Published |
|---|---|---|---|---|---|
CVE-2017-20285+1 related CVE | Unsafe deserialization in Perl YAML before 1.30 | 9.1 group max | — |