PYSEC-2020-96
Record from OSV · Published March 24, 2020
pyyaml is fixed in 5.3.1 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| pyyaml | PyPI | 5.3.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| PyPI | pyyaml | 5.1, 5.1, 5.1.1 |
Timeline
- Mar 24, 2020 CVE Published
- May 4, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln PYSEC-2020-96
vulnetix vdb fixes PYSEC-2020-96
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/PYSEC-2020-96/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1747 report
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZBJA3SGNJKCAYPSHOHWY3KBCWNM5NYK2/ url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/K5HEPD7LEVDPCITY5IMDYWXUMX37VFMY/ url
- http://lists.opensuse.org/opensuse-security-announce/2020-04/msg00017.html url
- http://lists.opensuse.org/opensuse-security-announce/2020-05/msg00017.html url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MMQXSZXNJT6ERABJZAAICI3DQSQLCP3D/ url
- https://github.com/yaml/pyyaml/pull/386 url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WORRFHPQVAFKKXXWLSSW6XKUYLWM6CSH/ url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7PPAS6C4SZRDQLR7C22A5U3QOLXY33JX/ url
- https://github.com/advisories/GHSA-6757-jp84-gxfx advisory