CVE-2019-25777 Details
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.
A vulnerability in the YAML Perl module, affecting versions prior to 1.27_001, allows a loaded perl/glob document to overwrite any package variable, potentially leading to arbitrary code execution. This issue arises because the perl/glob document can target sensitive variables like @INC or YAML's load options without restriction. By manipulating these variables, an attacker can enable code loading features and execute malicious Perl code during the YAML loading process.
Upgrade to YAML version 1.28 or later. For users unable to upgrade, set $YAML::LoadBlessed = 0 before loading untrusted input, a workaround available since YAML 1.25.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 5, 2026CISA-ADP
Assessed Oct 6, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/ingydotnet/yaml-pm/commit/bace96b5e6661d521c7c515c94a09e081c911fce.patch | CPANSec | Source CodeVendor |
| https://github.com/ingydotnet/yaml-pm/issues/212 | CPANSec | ExploitIssue TrackingTechnical DescriptionVendor |
| https://metacpan.org/release/TINITA/YAML-1.28/changes | CPANSec | Source CodeVendor |
| http://www.openwall.com/lists/oss-security/2026/10/05/7 | CVE | AdvisoryMailing ListRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-502 | Deserialization of Untrusted Data | CPANSec |
| CWE-914 | Improper Control of Dynamically-Identified Variables | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| YAML | < 1.27_001 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 6, 2026 | CVE Modified | CISA-ADP |
| Oct 5, 2026 | CVE Modified | CVE |
| Oct 5, 2026 | New CVE Received | CPANSec |
Volerion