CVE-2019-20477
Deserialization of Untrusted Data in PyYAML
Reported by mitre · Published February 19, 2020
pyyaml is fixed in 5.2b1 and 5.2 (PyPI)
PyYAML 5.1 through 5.1.2 has insufficient restrictions on the load and load_all functions because of a class deserialization issue, e.g., Popen is a class in the subprocess module. NOTE: this issue exists because of an incomplete fix for CVE-2017-18342.
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.2b1, 5.2 |
| pyyaml | pyyaml | 5.1.2 |
| pyyaml | Ubuntu:20.04:LTS | 5.3-1ubuntu2 |
| pathval | n/a | unspecified |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
| PyPI | PyYAML | 5.1 |
| pyyaml | pyyaml |
Timeline
- Feb 19, 2020 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 10, 2026 Security Advisory
- Jun 17, 2026 CVE Updated
- Sep 12, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2019-20477
vulnetix vdb fixes CVE-2019-20477
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/CVE-2019-20477/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- FEDORA-2020-3162499159 vendor-advisoryx_refsource_FEDORA
- FEDORA-2020-e84e90dc4a vendor-advisoryx_refsource_FEDORA
- https://nvd.nist.gov/vuln/detail/CVE-2019-20477 advisory
- https://github.com/advisories/GHSA-3pqx-4fqf-j49f advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/pyyaml/PYSEC-2020-176.yaml advisory
- https://github.com/yaml/pyyaml url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/33VBUY73AA6CTTYL3LRWHNFDULV7PFPN url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/52N5XS73Z5S4ZN7I7R56ICCPCTKCUV4H url