CVSS 3.1
9.8 criticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HCritical (9.8). EPSS 5.1% estimated probability of exploitation activity in the next 30 days. Fixed in pyyaml 5.2, 5.2b1.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:Hpyyaml (PyPI): fixed in 5.2, 5.2b1Explain CVE-2019-20477 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2019-20477?via=ask-ai-copy and https://cve.bz/cve/CVE-2019-20477?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2019-20477 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| pyyaml:pyyaml | from 5.1 through 5.1.2 |
| fedoraproject:fedora | 30 |
| fedoraproject:fedora | 31 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-3pqx-4fqf-j49f | PyPI | pyyaml | >=5.1 <5.2 | 5.2 |
| PYSEC-2020-176 | PyPI | pyyaml | >=5.1 <5.2b1 | 5.2b1 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12, 13, 14 | pyyaml | 5.2-1 | DEBIAN-CVE-2019-20477 |
| Red Hat | enterprise_linux:8::appstream | Cython, python38-Cython, Cython-debugsource and 1 more | 0:0.29.14-4.module+el8.2.0+5234+f98739b6 | RHSA-2020:4641 |
| Red Hat | enterprise_linux:8::appstream | PyYAML, python38-pyyaml, PyYAML-debugsource and 1 more | 0:5.3.1-1.module+el8.3.0+7187+a27ec44b | RHSA-2020:4641 |
| Red Hat | enterprise_linux:8::appstream | babel, python38-babel | 0:2.7.0-10.module+el8.2.0+5234+f98739b6 | RHSA-2020:4641 |
| Red Hat | enterprise_linux:8::appstream | mod_wsgi, python38-mod_wsgi | 0:4.6.8-3.module+el8.2.0+5234+f98739b6 | RHSA-2020:4641 |
| Red Hat | enterprise_linux:8::appstream | numpy, python38-numpy, numpy-debugsource and 3 more | 0:1.17.3-5.module+el8.3.0+7187+a27ec44b | RHSA-2020:4641 |
| Red Hat | enterprise_linux:8::appstream | python-PyMySQL, python38-PyMySQL | 0:0.9.3-3.module+el8.2.0+5234+f98739b6 | RHSA-2020:4641 |
| Red Hat | enterprise_linux:8::appstream | python-asn1crypto, python38-asn1crypto | 0:1.2.0-3.module+el8.2.0+5234+f98739b6 | RHSA-2020:4641 |
| Red Hat | enterprise_linux:8::appstream | python-cffi, python38-cffi, python-cffi-debugsource and 1 more | 0:1.13.2-3.module+el8.2.0+5234+f98739b6 | RHSA-2020:4641 |
| Red Hat | enterprise_linux:8::appstream | python-chardet, python38-chardet | 0:3.0.4-19.module+el8.2.0+5234+f98739b6 | RHSA-2020:4641 |
| Red Hat | enterprise_linux:8::appstream | python-cryptography, python38-cryptography, python-cryptography-debugsource and 1 more | 0:2.8-3.module+el8.2.0+5234+f98739b6 | RHSA-2020:4641 |
| Red Hat | enterprise_linux:8::appstream | python-idna, python38-idna | 0:2.8-6.module+el8.2.0+5234+f98739b6 | RHSA-2020:4641 |
| Red Hat | enterprise_linux:8::appstream | python-jinja2, python38-jinja2 | 0:2.10.3-4.module+el8.2.0+5234+f98739b6 | RHSA-2020:4641 |
| 16 more for Red Hat in the JSON and on Red Hat's page. | ||||
| AlmaLinux | 8 | python38-Cython | 0.29.14-4.module_el8.6.0+2778+cd494b30 | ALSA-2020:4641 |
| AlmaLinux | 8 | python38-asn1crypto | 1.2.0-3.module_el8.6.0+2778+cd494b30 | ALSA-2020:4641 |
| AlmaLinux | 8 | python38-cffi | 1.13.2-3.module_el8.6.0+2778+cd494b30 | ALSA-2020:4641 |
| AlmaLinux | 8 | python38-chardet | 3.0.4-19.module_el8.6.0+2778+cd494b30 | ALSA-2020:4641 |
| AlmaLinux | 8 | python38-cryptography | 2.8-3.module_el8.6.0+2778+cd494b30 | ALSA-2020:4641 |
| AlmaLinux | 8 | python38-idna | 2.8-6.module_el8.6.0+2778+cd494b30 | ALSA-2020:4641 |
| AlmaLinux | 8 | python38-markupsafe | 1.1.1-6.module_el8.6.0+2778+cd494b30 | ALSA-2020:4641 |
| AlmaLinux | 8 | python38-mod_wsgi | 4.6.8-3.module_el8.6.0+2778+cd494b30 | ALSA-2020:4641 |
| AlmaLinux | 8 | python38-psycopg2, python38-psycopg2-doc, python38-psycopg2-tests | 2.8.4-4.module_el8.6.0+2778+cd494b30 | ALSA-2020:4641 |
| AlmaLinux | 8 | python38-pycparser | 2.19-3.module_el8.6.0+2778+cd494b30 | ALSA-2020:4641 |
| AlmaLinux | 8 | python38-pysocks | 1.7.1-4.module_el8.6.0+2778+cd494b30 | ALSA-2020:4641 |
| AlmaLinux | 8 | python38-pytz | 2019.3-3.module_el8.6.0+2778+cd494b30 | ALSA-2020:4641 |
| 2 more for AlmaLinux in the JSON. | ||||
| Rocky Linux | 8 | Cython | 0:0.29.14-4.module+el8.4.0+570+c2eaf144 | RLSA-2020:4641 |
| Rocky Linux | 8 | PyYAML | 0:5.3.1-1.module+el8.4.0+570+c2eaf144 | RLSA-2020:4641 |
| Rocky Linux | 8 | babel | 0:2.7.0-10.module+el8.4.0+570+c2eaf144 | RLSA-2020:4641 |
| Rocky Linux | 8 | mod_wsgi | 0:4.6.8-3.module+el8.4.0+570+c2eaf144 | RLSA-2020:4641 |
| Rocky Linux | 8 | numpy | 0:1.17.3-5.module+el8.4.0+570+c2eaf144 | RLSA-2020:4641 |
| Rocky Linux | 8 | python-asn1crypto | 0:1.2.0-3.module+el8.4.0+570+c2eaf144 | RLSA-2020:4641 |
| Rocky Linux | 8 | python-cffi | 0:1.13.2-3.module+el8.4.0+570+c2eaf144 | RLSA-2020:4641 |
| Rocky Linux | 8 | python-chardet | 0:3.0.4-19.module+el8.4.0+570+c2eaf144 | RLSA-2020:4641 |
| Rocky Linux | 8 | python-cryptography | 0:2.8-3.module+el8.4.0+570+c2eaf144 | RLSA-2020:4641 |
| Rocky Linux | 8 | python-cryptography | 0:2.8-3.module+el8.5.0+672+ab6eb015 | RLSA-2020:4641 |
| Rocky Linux | 8 | python-idna | 0:2.8-6.module+el8.4.0+570+c2eaf144 | RLSA-2020:4641 |
| Rocky Linux | 8 | python-jinja2 | 0:2.10.3-4.module+el8.4.0+570+c2eaf144 | RLSA-2020:4641 |
| 14 more for Rocky Linux in the JSON. | ||||
From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat.
Red Hat rates this Moderate.
This issue did not affect the versions of PyYAML as shipped with Red Hat Enterprise Linux 7, and 8 as they did not include the class FullLoader, which contains this vulnerability.
The PyYAML libary that is provided in the Red Hat OpenStack repositories is vulnerable. However, because there are no instances where this library is used in a way which exposes the vulnerability, the impact to OpenStack products has been reduced to 'low' and Red Hat will not be providing a fix at this time. Any updates will be through RHEL channels.
Red Hat Quay 3.2 uses the vulnerable load function, but only to parse the Nginx configuration file, which only contains trusted data.
Use `yaml.safe_load` or the SafeLoader loader when you parse untrusted input.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | python38:3.8-8030020200818121840.4190259b | Fixed 2020-11-04 | RHSA-2020:4641 |
| Red Hat Quay 3 | quay/clair-rhel8:v3.4.0-25 | Fixed 2021-02-04 | RHSA-2021:0420 |
| Red Hat Quay 3 | quay/quay-bridge-operator-bundle:v3.4.0-3 | Fixed 2021-02-04 | RHSA-2021:0420 |
| Red Hat Quay 3 | quay/quay-bridge-operator-rhel8:v3.4.0-17 | Fixed 2021-02-04 | RHSA-2021:0420 |
| Red Hat Quay 3 | quay/quay-builder-qemu-rhcos-rhel8:v3.4.0-17 | Fixed 2021-02-04 | RHSA-2021:0420 |
| Red Hat Quay 3 | quay/quay-builder-rhel8:v3.4.0-18 | Fixed 2021-02-04 | RHSA-2021:0420 |
| Red Hat Quay 3 | quay/quay-container-security-operator-bundle:v3.4.0-2 | Fixed 2021-02-04 | RHSA-2021:0420 |
| Red Hat Quay 3 | quay/quay-container-security-operator-rhel8:v3.4.0-2 | Fixed 2021-02-04 | RHSA-2021:0420 |
| Red Hat Quay 3 | quay/quay-openshift-bridge-rhel8-operator:v3.4.0-17 | Fixed 2021-02-04 | RHSA-2021:0420 |
| Red Hat Quay 3 | quay/quay-operator-bundle:v3.4.0-89 | Fixed 2021-02-04 | RHSA-2021:0420 |
| Red Hat Quay 3 | quay/quay-operator-rhel8:v3.4.0-132 | Fixed 2021-02-04 | RHSA-2021:0420 |
| Red Hat Enterprise Linux 6 | PyYAML | Out of support scope | |
| Red Hat Enterprise Linux 7 | PyYAML | Not affected | |
| Red Hat Enterprise Linux 8 | python27:2.7/PyYAML | Not affected | |
| Red Hat Enterprise Linux 8 | PyYAML | Not affected | |
| Red Hat OpenStack Platform 10 (Newton) | PyYAML | Will not fix | |
| Red Hat OpenStack Platform 13 (Queens) | PyYAML | Will not fix | |
| Red Hat Software Collections | python27-PyYAML | Not affected | |
| Red Hat Software Collections | rh-python36-PyYAML | Not affected | |
| Red Hat Software Collections | rh-python38-PyYAML | Not affected | |
| 1 more in the JSON and on Red Hat's page. | |||
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2019-20477.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.