CVE catalog

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. A perl/glob document names a package and a symbol

[CVE catalog]

Severity
Critical · CVSS 9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Published
Updated
Source
[NVD] · [CVE record]
EPSS
0.35% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlibyaml-perlsid1.321-1fixed
Debianlibyaml-perlforky1.321-1fixed
Debianlibyaml-perltrixie1.31-1fixed
Debianlibyaml-perlbookworm1.30-2fixed
Ubuntulibyaml-perlnoble1.31-1ubuntu0.24.04.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibyaml-perlsourcesid1.29-1not yet assignedNot reportedNot reported
Debianlibyaml-perlsourceforky1.29-1not yet assignedNot reportedNot reported
Debianlibyaml-perlsourcetrixie1.29-1not yet assignedNot reportedNot reported
Debianlibyaml-perlsourcebookworm1.29-1not yet assignedNot reportedNot reported
Ubuntulibyaml-perldebnoble1.31-1ubuntu0.24.04.1Not reportedNot reportedNot reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Details (2)
    • 1.30-2 · all · bookworm

      Fixed · Fixed: 1.29-1

      nvd · libyaml-perl · debian · bookworm; nvd · libyaml-perl · debian · 12

    • 1.30-2 · all · bookworm

      Fixed · Fixed: 1.29-1

      nvd · libyaml-perl · debian · bookworm; nvd · libyaml-perl · debian · 12

[Debian 13 (Trixie)]

  • Details (2)
    • 1.31-1 · all · trixie

      Fixed · Fixed: 1.29-1

      nvd · libyaml-perl · debian · 13

    • 1.31-1 · all · trixie

      Fixed · Fixed: 1.29-1

      nvd · libyaml-perl · debian · 13

Observed:

References