{"id":"CVE-2019-25777","published":"2026-10-05T06:50:17Z","modified":"2026-10-06T16:58:19Z","title":"YAML versions before 1.27_001 for Perl allow a loaded perl/glob document to replace any package variable, which can…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.\n\nA 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.\n\nA 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00352,"percentile":0.29623,"provenance":"source"},"cwes":[{"id":"CWE-914","name":"Improper Control of Dynamically-Identified Variables"},{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://github.com/ingydotnet/yaml-pm/issues/212","tags":["issue-tracking"]},{"url":"https://github.com/ingydotnet/yaml-pm/commit/bace96b5e6661d521c7c515c94a09e081c911fce.patch","tags":["patch"]},{"url":"https://metacpan.org/release/TINITA/YAML-1.28/changes","tags":["release-notes"]},{"url":"http://www.openwall.com/lists/oss-security/2026/10/05/7","tags":[]}],"priority":{"score":11.0,"factors":[{"name":"EPSS percentile","points":5.92},{"name":"CVSS severity","points":5.11}]},"affectedVersions":[{"vendor":null,"product":null,"versions":["< 1.27_001"]}],"solutions":{"items":["Upgrade to YAML 1.28 or later."],"from":"CVE.org CNA","provenance":"source"},"workarounds":{"items":["For deployments that cannot upgrade to YAML 1.28, set $YAML::LoadBlessed = 0 before loading untrusted input. The option exists from YAML 1.25 and gates glob loading too."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-10-06T16:58:07.558999Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2019-20205","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-cve-2017-20285-family-cve-2017-20285","parents":[{"from":"CVE-2017-20285","to":"CVE-2019-25777","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/YAML/Types.pm"],"commits":["https://github.com/ingydotnet/yaml-pm/commit/471314bbdcbd62077eea32755929122aa8bd00a3","https://github.com/ingydotnet/yaml-pm/commit/7736f38bd02e4f9f77d5468721e3be3d7b34a8ec","https://github.com/ingydotnet/yaml-pm/commit/bace96b5e6661d521c7c515c94a09e081c911fce"],"basis":"shared function","functions":["yaml_load"]}]}]}}