Skip to content
OpenAdvisories
High · 7.3 CVE-2019-25777 EUVD-2019-20205GHSA-38xx-2hm6-vh7q

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

Published Oct 5, 2026 · Updated Oct 6, 2026 · Assigned by CPANSec

Description

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.

A perl/glob document names a package and a symbol, and supplies the value assigned to it. Nothing restricts the name, so the target can be @INC or YAML's own load options.

A perl/glob document that sets $YAML::LoadCode or $YAML::UseCode turns on code loading, which is off by default, for every later Load() in the process. A perl/code document is then passed to a string eval, so an attacker who supplies two documents to separate Load() calls in one process can execute arbitrary Perl code.

Affected products

VendorProductAffectedFixed
— YAML < 1.27_001 1.27_001

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libyaml-perl 1.29-1 —
Debian 13 libyaml-perl 1.29-1 —
Debian 12 libyaml-perl 1.29-1 —
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS libyaml-perl 1.31-1ubuntu0.24.04.1 USN-8925-1
Ubuntu 22.04 LTS libyaml-perl 1.30-1ubuntu0.22.04.1 USN-8925-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 26.04 LTS libyaml-perl 1.31-1ubuntu0.26.04.1~esm1 USN-8925-1
Ubuntu Pro 20.04 LTS libyaml-perl 1.30-1ubuntu0.20.04.1~esm1 USN-8925-1
Ubuntu Pro 18.04 LTS libyaml-perl 1.24-1ubuntu0.1~esm1 USN-8925-1
Ubuntu Pro 16.04 LTS libyaml-perl 1.15-1ubuntu0.1~esm1 USN-8925-1
ReleasePackageFixed inAdvisory
RHEL 8 perl-YAML 1.24-4.module+el8.10.0+25073+d1062575 RHSA-2026:93471

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 perl-YAML 1.24-4.module_el8.10.0+4341+ab0ec422 ALSA-2026:93471

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 perl-YAML 1.24-4.module+el8.10.0+40403+bd06a93a RLSA-2026:93471
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed perl-YAML 1.321.0-2.1 openSUSE-SU-2026:12368-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 perl-YAML 0.84-5.amzn2.0.2 ALAS2-2026-4035

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 perl-YAML 1.24-4.module+el8.10.0+91104+33aeb071 ELSA-2026-93471

Advisories 8

References