Security advisory
A vulnerability was discovered in the PyYAML library in versions before 5.3.1, where it is susceptible to arbitrary code execution when it processes untrusted YAML files through the full_load method or with the FullLoader loader. Applications that use the library to process untrusted input may be vulnerable to this flaw. An attacker could use this flaw to execute arbitrary code on the system by abusing the python/object/new constructor.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2020-1747
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 10:54 UTC · Revision 1
Source evidence
A vulnerability was discovered in the PyYAML library in versions before 5.3.1, where it is susceptible to arbitrary code execution when it processes untrusted YAML files through the full_load method or with the FullLoader loader. Applications that use the library to process untrusted input may be vulnerable to this flaw. An attacker could use this flaw to execute arbitrary code on the system by abusing the python/object/new constructor.
osv:CVE-2020-1747
Complete source record
{
"id": "598a9a9b2b9c44cd8688ef60096ae18fd8abca2f3b83ec741aec1846ffaac2b1",
"url": "https://osv.dev/vulnerability/CVE-2020-1747",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2020-1747",
"summary": "A vulnerability was discovered in the PyYAML library in versions before 5.3.1, where it is susceptible to arbitrary code execution when it processes untrusted YAML files through the full_load method or with the FullLoader loader. Applications that use the library to process untrusted input may be vulnerable to this flaw. An attacker could use this flaw to execute arbitrary code on the system by abusing the python/object/new constructor.",
"evidence": "osv:CVE-2020-1747",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2020-1747",
"aliases": [
"CVE-2020-1747",
"GHSA-6757-jp84-gxfx",
"PYSEC-2020-96"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/yaml/pyyaml",
"type": "GIT",
"events": [
{
"introduced": "e471e86bf6dabdad45a1438c20a4a5c033eb9034"
},
{
"fixed": "69b025a9f32fd864ed2096a444a718b7492eb892"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:pyyaml:pyyaml:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "5.1"
},
{
"fixed": "5.3.1"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"5.1.2",
"5.2",
"5.2b1",
"5.1.1",
"5.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-1747.json"
}
}
],
"modified": "2026-10-20T10:52:01.599810528Z",
"provider": "osv",
"references": [
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7PPAS6C4SZRDQLR7C22A5U3QOLXY33JX/",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/K5HEPD7LEVDPCITY5IMDYWXUMX37VFMY/",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MMQXSZXNJT6ERABJZAAICI3DQSQLCP3D/",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WORRFHPQVAFKKXXWLSSW6XKUYLWM6CSH/",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZBJA3SGNJKCAYPSHOHWY3KBCWNM5NYK2/",
"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1747",
"https://github.com/yaml/pyyaml/pull/386",
"https://www.oracle.com/security-alerts/cpujul2022.html"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:*",
"cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:*",
"cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*",
"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*"
],
"vendor_product": "fedoraproject:fedora",
"extracted_events": [
{
"range": [
{
"introduced": "30"
},
{
"last_affected": "30"
},
{
"introduced": "31"
},
{
"last_affected": "31"
},
{
"introduced": "32"
},
{
"last_affected": "32"
},
{
"introduced": "33"
},
{
"last_affected": "33"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*"
],
"vendor_product": "opensuse:leap",
"extracted_events": [
{
"range": [
{
"introduced": "15.1"
},
{
"last_affected": "15.1"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:a:oracle:communications_cloud_native_core_network_function_cloud_native_environment:22.1.0:*:*:*:*:*:*:*"
],
"vendor_product": "oracle:communications_cloud_native_core_network_function_cloud_native_environment",
"extracted_events": [
{
"range": [
{
"introduced": "22.1.0"
},
{
"last_affected": "22.1.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2020-1747",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 383208,
"published_at": "2020-03-24T15:15:12.293+00:00"
}