{"id":"CVE-2019-20477","aliases":["CVE-2019-20477","GHSA-3pqx-4fqf-j49f","PYSEC-2020-176"],"related":[],"kind":"vulnerability","state":"published","title":"Deserialization of Untrusted Data in PyYAML","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"PyYAML versiones 5.1 hasta 5.1.2,  presenta restricciones insuficientes en las funciones load y load_all debido a un problema de deserialización de clase, por ejemplo, Popen es una clase en el módulo subprocess. NOTA: este problema se presenta debido a una corrección incompleta para el CVE-2017-18342.","source":"nvd"}],"published":"2020-02-19T03:09:21.000Z","modified":"2026-06-17T02:30:32.580Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-502"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"5.1","status":"affected","fixed":"5.2"}],"ecosystem":"PyPI","package":"pyyaml","purl":"pkg:pypi/pyyaml","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"5.1","lastAffected":"5.1.2"}],"vendor":"pyyaml","product":"pyyaml","cpe":"cpe:2.3:a:pyyaml:pyyaml:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"30"},{"status":"affected","version":"31"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"5.1","status":"affected","fixed":"5.2b1"}],"ecosystem":"PyPI","package":"pyyaml","purl":"pkg:pypi/pyyaml","source":"pysec"}],"references":[{"url":"https://github.com/yaml/pyyaml/blob/master/CHANGES","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://www.exploit-db.com/download/47655","tags":["exploit","third-party-advisory","vdb-entry","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/52N5XS73Z5S4ZN7I7R56ICCPCTKCUV4H/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/33VBUY73AA6CTTYL3LRWHNFDULV7PFPN/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-20477","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-3pqx-4fqf-j49f","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pyyaml/PYSEC-2020-176.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/yaml/pyyaml","tags":["package"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/33VBUY73AA6CTTYL3LRWHNFDULV7PFPN","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/52N5XS73Z5S4ZN7I7R56ICCPCTKCUV4H","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/52N5XS73Z5S4ZN7I7R56ICCPCTKCUV4H/","tags":["web"],"sources":["pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/33VBUY73AA6CTTYL3LRWHNFDULV7PFPN/","tags":["web"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2019-20477","url":"https://www.cve.org/CVERecord?id=CVE-2019-20477","licence":"CVE Terms of Use","modified":"2024-08-05T02:39:10.138Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3pqx-4fqf-j49f","url":"https://github.com/advisories/GHSA-3pqx-4fqf-j49f","licence":"CC-BY-4.0","modified":"2024-10-25T21:23:11.506Z"},{"source":"nvd","name":"NVD","id":"CVE-2019-20477","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-20477","licence":"Public domain","modified":"2026-06-17T02:30:32.580Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2020-176","url":"https://osv.dev/vulnerability/PYSEC-2020-176","licence":"CC-BY-4.0","modified":"2023-11-08T04:01:30.627Z"}],"updatedAt":"2026-11-25T22:57:49.468Z","epss":{"score":0.05114,"percentile":0.92572,"date":"2026-12-02T12:00:21.000Z"}}