{"id":"CVE-2019-25777","aliases":["CVE-2019-25777"],"related":[],"kind":"vulnerability","state":"published","title":"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","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-10-05T06:50:17.532Z","modified":"2026-10-06T17:17:09.893Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"}],"cwes":["CWE-502","CWE-914"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"1.27_001","status":"affected"}],"package":"YAML","repo":"https://github.com/ingydotnet/yaml-pm","source":"cvelist"}],"references":[{"url":"https://github.com/ingydotnet/yaml-pm/issues/212","tags":["issue-tracking"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ingydotnet/yaml-pm/commit/bace96b5e6661d521c7c515c94a09e081c911fce.patch","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://metacpan.org/release/TINITA/YAML-1.28/changes","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2026/10/05/7","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"CPANSec","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-10-06T16:58:07.558Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2019-25777","url":"https://www.cve.org/CVERecord?id=CVE-2019-25777","licence":"CVE Terms of Use","modified":"2026-10-06T16:58:19.261Z"},{"source":"nvd","name":"NVD","id":"CVE-2019-25777","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-25777","licence":"Public domain","modified":"2026-10-06T17:17:09.893Z"}],"updatedAt":"2026-11-25T22:57:50.467Z","epss":{"score":0.00352,"percentile":0.30842,"date":"2026-12-01T12:00:22.000Z"}}