CVE-2019-25777 (GCVE-0-2019-25777)
Vulnerability from cvelistv5
Published
2026-10-05 06:50
Modified
2026-10-06 16:58
Severity ?
VLAI Severity ?
EPSS score ?
CWE
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.
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.
References
{
"containers": {
"adp": [
{
"providerMetadata": {
"dateUpdated": "2026-10-05T18:10:19.164Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"url": "http://www.openwall.com/lists/oss-security/2026/10/05/7"
}
],
"title": "CVE Program Container"
},
{
"metrics": [
{
"cvssV3_1": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "LOW",
"baseScore": 7.3,
"baseSeverity": "HIGH",
"confidentialityImpact": "LOW",
"integrityImpact": "LOW",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L",
"version": "3.1"
}
},
{
"other": {
"content": {
"id": "CVE-2019-25777",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-10-06T16:58:07.558999Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-10-06T16:58:19.261Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"collectionURL": "https://cpan.org/modules",
"defaultStatus": "unaffected",
"modules": [
"YAML"
],
"packageName": "YAML",
"packageURL": "pkg:cpan/YAML",
"programFiles": [
"lib/YAML/Types.pm"
],
"programRoutines": [
{
"name": "YAML::Type::glob::yaml_load"
}
],
"repo": "https://github.com/ingydotnet/yaml-pm",
"versions": [
{
"lessThan": "1.27_001",
"status": "affected",
"version": "0",
"versionType": "custom"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "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\u0027s 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."
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-914",
"description": "CWE-914 Improper Control of Dynamically-Identified Variables",
"lang": "en",
"type": "CWE"
}
]
},
{
"descriptions": [
{
"cweId": "CWE-502",
"description": "CWE-502 Deserialization of Untrusted Data",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-10-05T06:50:17.532Z",
"orgId": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
"shortName": "CPANSec"
},
"references": [
{
"tags": [
"issue-tracking"
],
"url": "https://github.com/ingydotnet/yaml-pm/issues/212"
},
{
"tags": [
"patch"
],
"url": "https://github.com/ingydotnet/yaml-pm/commit/bace96b5e6661d521c7c515c94a09e081c911fce.patch"
},
{
"tags": [
"release-notes"
],
"url": "https://metacpan.org/release/TINITA/YAML-1.28/changes"
}
],
"solutions": [
{
"lang": "en",
"value": "Upgrade to YAML 1.28 or later."
}
],
"source": {
"discovery": "UNKNOWN"
},
"timeline": [
{
"lang": "en",
"time": "2019-04-27T00:00:00.000Z",
"value": "Issue reported."
},
{
"lang": "en",
"time": "2019-04-27T00:00:00.000Z",
"value": "Version 1.27_001 released with fix."
},
{
"lang": "en",
"time": "2019-04-28T00:00:00.000Z",
"value": "Version 1.28 released with fix."
},
{
"lang": "en",
"time": "2022-06-27T00:00:00.000Z",
"value": "Issue added as CPANSA-YAML-2019-01 in the CPAN::Audit database."
},
{
"lang": "en",
"time": "2026-09-21T00:00:00.000Z",
"value": "CVE number reserved."
}
],
"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",
"workarounds": [
{
"lang": "en",
"value": "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."
}
],
"x_generator": {
"engine": "cpansec-cna-tool 0.1"
}
}
},
"cveMetadata": {
"assignerOrgId": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
"assignerShortName": "CPANSec",
"cveId": "CVE-2019-25777",
"datePublished": "2026-10-05T06:50:17.532Z",
"dateReserved": "2026-09-21T21:17:21.642Z",
"dateUpdated": "2026-10-06T16:58:19.261Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"vulnrichment": {
"containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 7.3, \"attackVector\": \"NETWORK\", \"baseSeverity\": \"HIGH\", \"vectorString\": \"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L\", \"integrityImpact\": \"LOW\", \"userInteraction\": \"NONE\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"LOW\", \"privilegesRequired\": \"NONE\", \"confidentialityImpact\": \"LOW\"}}, {\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2019-25777\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"yes\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2026-10-06T16:58:07.558999Z\"}}}], \"providerMetadata\": {\"shortName\": \"CISA-ADP\", \"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"dateUpdated\": \"2026-10-06T16:58:01.220Z\"}}], \"cna\": {\"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\", \"source\": {\"discovery\": \"UNKNOWN\"}, \"affected\": [{\"repo\": \"https://github.com/ingydotnet/yaml-pm\", \"modules\": [\"YAML\"], \"versions\": [{\"status\": \"affected\", \"version\": \"0\", \"lessThan\": \"1.27_001\", \"versionType\": \"custom\"}], \"packageURL\": \"pkg:cpan/YAML\", \"packageName\": \"YAML\", \"programFiles\": [\"lib/YAML/Types.pm\"], \"collectionURL\": \"https://cpan.org/modules\", \"defaultStatus\": \"unaffected\", \"programRoutines\": [{\"name\": \"YAML::Type::glob::yaml_load\"}]}], \"timeline\": [{\"lang\": \"en\", \"time\": \"2019-04-27T00:00:00.000Z\", \"value\": \"Issue reported.\"}, {\"lang\": \"en\", \"time\": \"2019-04-27T00:00:00.000Z\", \"value\": \"Version 1.27_001 released with fix.\"}, {\"lang\": \"en\", \"time\": \"2019-04-28T00:00:00.000Z\", \"value\": \"Version 1.28 released with fix.\"}, {\"lang\": \"en\", \"time\": \"2022-06-27T00:00:00.000Z\", \"value\": \"Issue added as CPANSA-YAML-2019-01 in the CPAN::Audit database.\"}, {\"lang\": \"en\", \"time\": \"2026-09-21T00:00:00.000Z\", \"value\": \"CVE number reserved.\"}], \"solutions\": [{\"lang\": \"en\", \"value\": \"Upgrade to YAML 1.28 or later.\"}], \"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\"]}], \"workarounds\": [{\"lang\": \"en\", \"value\": \"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.\"}], \"x_generator\": {\"engine\": \"cpansec-cna-tool 0.1\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"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\u0027s 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.\"}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-914\", \"description\": \"CWE-914 Improper Control of Dynamically-Identified Variables\"}]}, {\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-502\", \"description\": \"CWE-502 Deserialization of Untrusted Data\"}]}], \"providerMetadata\": {\"orgId\": \"9b29abf9-4ab0-4765-b253-1875cd9b441e\", \"shortName\": \"CPANSec\", \"dateUpdated\": \"2026-10-05T06:50:17.532Z\"}}}",
"cveMetadata": "{\"cveId\": \"CVE-2019-25777\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-10-05T18:10:19.164Z\", \"dateReserved\": \"2026-09-21T21:17:21.642Z\", \"assignerOrgId\": \"9b29abf9-4ab0-4765-b253-1875cd9b441e\", \"datePublished\": \"2026-10-05T06:50:17.532Z\", \"assignerShortName\": \"CPANSec\"}",
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…
Loading…