CVE-2019-25777
published high CVSS 3.1 · 7.3YAML 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
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Not stated | — | YAML0 to < 1.27_001 · Other versions: unaffected | Affected | Not stated | CPANSec |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2-2026-4035 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| AlmaLinux | 8 | perl-YAML | Advisory build | 1.24-4.module_el8.10.0+4341+ab0ec422 | ALSA-2026:93471 |
| Oracle Linux | 8 | perl-YAMLaarch64 · perl-YAML · 1.24b | Advisory build | 0:1.24-4.module+el8.10.0+91104+33aeb071 | ELSA-2026-93471 |
| Red Hat Enterprise Linux | RHEL-8 | perl-YAMLnoarch | Advisory build | 1.24-4.module+el8.10.0+25073+42d87e53 | RHSA-2026:93471 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-YAMLaarch64 | Advisory build | 1.321.0-2.1 | OPENSUSE-SU-2026:12368-1 |
Show 15 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | bionic | libyaml-perl | Advisory build | 1.24-1ubuntu0.1~esm1 | USN-8925-1 |
| Amazon Linux | AL2 | perl-YAMLnoarch | Listed in advisory | Not stated | ALAS2-2026-4035 |
| Rocky Linux | 8 | perl-YAMLnoarch | Listed in advisory | Not stated | RLSA-2026:93471 |
| Oracle Linux | 8 | perl-YAMLaarch64 · perl-YAML · 1.24b | Advisory build | 0:1.24-4.module+el8.10.0+91104+f3b3492f | ELSA-2026-93471 |
| Oracle Linux | 8 | perl-YAMLx86_64 · perl-YAML · 1.24b | Advisory build | 0:1.24-4.module+el8.10.0+91104+33aeb071 | ELSA-2026-93471 |
| Oracle Linux | 8 | perl-YAMLx86_64 · perl-YAML · 1.24b | Advisory build | 0:1.24-4.module+el8.10.0+91104+f3b3492f | ELSA-2026-93471 |
| Red Hat Enterprise Linux | RHEL-8 | perl-YAMLnoarch | Advisory build | 1.24-4.module+el8.10.0+25073+d1062575 | RHSA-2026:93471 |
| Red Hat Enterprise Linux | RHEL-8 | perl-YAMLsrc | Advisory build | 1.24-4.module+el8.10.0+25073+42d87e53 | RHSA-2026:93471 |
| Red Hat Enterprise Linux | RHEL-8 | perl-YAMLsrc | Advisory build | 1.24-4.module+el8.10.0+25073+d1062575 | RHSA-2026:93471 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-YAMLppc64le | Advisory build | 1.321.0-2.1 | OPENSUSE-SU-2026:12368-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-YAMLs390x | Advisory build | 1.321.0-2.1 | OPENSUSE-SU-2026:12368-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-YAMLx86_64 | Advisory build | 1.321.0-2.1 | OPENSUSE-SU-2026:12368-1 |
| Ubuntu | xenial | libyaml-perl | Advisory build | 1.15-1ubuntu0.1~esm1 | USN-8925-1 |
| Amazon Linux | AL2 | perl-YAMLsrc | Listed in advisory | Not stated | ALAS2-2026-4035 |
| Rocky Linux | 8 | perl-YAMLsrc | Listed in advisory | Not stated | RLSA-2026:93471 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.3 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| YAML | 0 to < 1.27_001 (affected · custom)Default: unaffected | CPANSec · cna |
Weaknesses
2- CWE-914 CWE-914 Improper Control of Dynamically-Identified Variables
- CWE-502 CWE-502 Deserialization of Untrusted Data
References
4Provider assertions
3CPANSec · cna
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
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 4d370863b76404200314432ab1ea09299a925805ee65bf89a72cc00157a0d0a2
- Ingested
- 06 Oct 2026, 18:42:18 UTC
- Source record
- Official CVE record