Skip to content
NewA calmer, faster ZeroHour
StoryVulnerabilityhigh

Two Perl YAML flaws cover variable overwrite and DESTROY

1 source · 2 articlesFirst reported Updated ()2 · 1 read
What's new

First coverage.

Merged summary · grok-4.7 · rewritten as coverage arrivesSummaries by Vani AI

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.

Key facts
  • 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.
Analyze CVE-2019-25777 with Vani AIImpact, affected versions, exploitation, mitigations and detection

Coverage

oldest first · one row per article · UTC
  1. · Oct 5, 2026 oss-securityFirst report

    CVE-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.

  2. · Oct 5, 2026 oss-security

    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
CVEVulnerabilityCVSSEPSSSignalsPublished
CVE-2017-20285
+1 related CVE
Unsafe deserialization in Perl YAML before 1.30
9.1
group max
—