# CVE-2019-20477: Deserialization of Untrusted Data in PyYAML

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 5.11%, higher than 92% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-02-19T03:09:21.000Z
- Modified: 2026-06-17T02:30:32.580Z
- Also known as: GHSA-3pqx-4fqf-j49f, PYSEC-2020-176
- Weaknesses: CWE-502
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- pyyaml (PyPI): from 5.1 before 5.2; from 5.1 before 5.2b1
- pyyaml pyyaml: from 5.1 up to 5.1.2
- fedoraproject fedora: 30; 31

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://www.exploit-db.com/download/47655> (exploit, third-party-advisory, vdb-entry, web)
- <https://github.com/yaml/pyyaml/blob/master/CHANGES> (release-notes, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/52N5XS73Z5S4ZN7I7R56ICCPCTKCUV4H/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/33VBUY73AA6CTTYL3LRWHNFDULV7PFPN/> (vendor-advisory)
- <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> (web)
- <https://github.com/yaml/pyyaml> (package)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/33VBUY73AA6CTTYL3LRWHNFDULV7PFPN> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/52N5XS73Z5S4ZN7I7R56ICCPCTKCUV4H> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/52N5XS73Z5S4ZN7I7R56ICCPCTKCUV4H/> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/33VBUY73AA6CTTYL3LRWHNFDULV7PFPN/> (web)

## Sources

- CVE List: [CVE-2019-20477](https://www.cve.org/CVERecord?id=CVE-2019-20477), CVE Terms of Use, modified 2024-08-05
- GitHub Advisory Database: [GHSA-3pqx-4fqf-j49f](https://github.com/advisories/GHSA-3pqx-4fqf-j49f), CC-BY-4.0, modified 2024-10-25
- NVD: [CVE-2019-20477](https://nvd.nist.gov/vuln/detail/CVE-2019-20477), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2020-176](https://osv.dev/vulnerability/PYSEC-2020-176), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2019-20477 · Whole record: https://cve.day/CVE-2019-20477.json · Rebuilt by cve.day 2026-11-25T22:57:49.468Z
