CVEfocus › CVE database › CVE-2020-1747

CVE-2020-1747

CVSS 9.8 CriticalEPSS 4.7% (higher than 93% of CVEs)Published 2020-03-24Updated 2024-08-04Assigner: redhat

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.

CWE-20

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, PyPI, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

139Fixed
1Fix pending
8Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 20.04pyyamlNot affected
vulnerable_code_not_present
Ubuntu 18.04pyyamlNot affected
vulnerable_code_not_present
Ubuntu 16.04pyyamlNot affected
vulnerable_code_not_present
Ubuntu 14.04pyyamlFix pending
Debian 14pyyamlFixed5.3-2DEBIAN-CVE-2020-1747
Debian 13pyyamlFixed5.3-2DEBIAN-CVE-2020-1747
Debian 12pyyamlFixed5.3-2DEBIAN-CVE-2020-1747
Red Hat Enterprise Linux 9python3-pyyamlNot affected
Red Hat Enterprise Linux 8CythonFixed0:0.29.14-4.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8PyYAMLFixed0:5.3.1-1.module+el8.3.0+7187+a27ec44bRHSA-2020:4641
Red Hat Enterprise Linux 8babelFixed0:2.7.0-10.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8mod_wsgiFixed0:4.6.8-3.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8numpyFixed0:1.17.3-5.module+el8.3.0+7187+a27ec44bRHSA-2020:4641
Red Hat Enterprise Linux 8python-PyMySQLFixed0:0.9.3-3.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python-asn1cryptoFixed0:1.2.0-3.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python-cffiFixed0:1.13.2-3.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python-chardetFixed0:3.0.4-19.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python-cryptographyFixed0:2.8-3.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python-idnaFixed0:2.8-6.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python-jinja2Fixed0:2.10.3-4.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python-lxmlFixed0:4.4.1-4.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python-markupsafeFixed0:1.1.1-6.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python-plyFixed0:3.11-8.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python-psutilFixed0:5.6.4-3.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python-psycopg2Fixed0:2.8.4-4.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python-pycparserFixed0:2.19-3.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python-pysocksFixed0:1.7.1-4.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python-requestsFixed0:2.22.0-9.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python-sixFixed0:1.12.0-9.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python-urllib3Fixed0:1.25.7-4.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python-wheelFixed0:0.33.6-5.module+el8.3.0+7187+a27ec44bRHSA-2020:4641
Red Hat Enterprise Linux 8python2-pyyamlNot affected
Red Hat Enterprise Linux 8python38Fixed0:3.8.3-3.module+el8.3.0+7680+79e7e61aRHSA-2020:4641
Red Hat Enterprise Linux 8python38-CythonFixed0:0.29.14-4.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python38-PyMySQLFixed0:0.9.3-3.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python38-asn1cryptoFixed0:1.2.0-3.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python38-babelFixed0:2.7.0-10.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python38-cffiFixed0:1.13.2-3.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python38-chardetFixed0:3.0.4-19.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python38-cryptographyFixed0:2.8-3.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python38-debugFixed0:3.8.3-3.module+el8.3.0+7680+79e7e61aRHSA-2020:4641
Red Hat Enterprise Linux 8python38-develFixed0:3.8.3-3.module+el8.3.0+7680+79e7e61aRHSA-2020:4641
Red Hat Enterprise Linux 8python38-idleFixed0:3.8.3-3.module+el8.3.0+7680+79e7e61aRHSA-2020:4641
Red Hat Enterprise Linux 8python38-idnaFixed0:2.8-6.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python38-jinja2Fixed0:2.10.3-4.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python38-libsFixed0:3.8.3-3.module+el8.3.0+7680+79e7e61aRHSA-2020:4641
Red Hat Enterprise Linux 8python38-lxmlFixed0:4.4.1-4.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python38-markupsafeFixed0:1.1.1-6.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python38-mod_wsgiFixed0:4.6.8-3.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python38-numpyFixed0:1.17.3-5.module+el8.3.0+7187+a27ec44bRHSA-2020:4641
Red Hat Enterprise Linux 8python38-numpy-docFixed0:1.17.3-5.module+el8.3.0+7187+a27ec44bRHSA-2020:4641
Red Hat Enterprise Linux 8python38-numpy-f2pyFixed0:1.17.3-5.module+el8.3.0+7187+a27ec44bRHSA-2020:4641
Red Hat Enterprise Linux 8python38-pipFixed0:19.3.1-1.module+el8.3.0+7187+a27ec44bRHSA-2020:4641
Red Hat Enterprise Linux 8python38-pip-wheelFixed0:19.3.1-1.module+el8.3.0+7187+a27ec44bRHSA-2020:4641
Red Hat Enterprise Linux 8python38-plyFixed0:3.11-8.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python38-psutilFixed0:5.6.4-3.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python38-psycopg2Fixed0:2.8.4-4.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python38-psycopg2-docFixed0:2.8.4-4.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python38-psycopg2-testsFixed0:2.8.4-4.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python38-pycparserFixed0:2.19-3.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python38-pysocksFixed0:1.7.1-4.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python38-pytzFixed0:2019.3-3.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python38-pyyamlFixed0:5.3.1-1.module+el8.3.0+7187+a27ec44bRHSA-2020:4641
Red Hat Enterprise Linux 8python38-requestsFixed0:2.22.0-9.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python38-rpm-macrosFixed0:3.8.3-3.module+el8.3.0+7680+79e7e61aRHSA-2020:4641
Red Hat Enterprise Linux 8python38-scipyFixed0:1.3.1-4.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python38-setuptoolsFixed0:41.6.0-4.module+el8.3.0+7187+a27ec44bRHSA-2020:4641
Red Hat Enterprise Linux 8python38-setuptools-wheelFixed0:41.6.0-4.module+el8.3.0+7187+a27ec44bRHSA-2020:4641
Red Hat Enterprise Linux 8python38-sixFixed0:1.12.0-9.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python38-testFixed0:3.8.3-3.module+el8.3.0+7680+79e7e61aRHSA-2020:4641
Red Hat Enterprise Linux 8python38-tkinterFixed0:3.8.3-3.module+el8.3.0+7680+79e7e61aRHSA-2020:4641
Red Hat Enterprise Linux 8python38-urllib3Fixed0:1.25.7-4.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8python38-wheelFixed0:0.33.6-5.module+el8.3.0+7187+a27ec44bRHSA-2020:4641
Red Hat Enterprise Linux 8python38-wheel-wheelFixed0:0.33.6-5.module+el8.3.0+7187+a27ec44bRHSA-2020:4641
Red Hat Enterprise Linux 8python39-pyyamlNot affected
Red Hat Enterprise Linux 8python3x-pipFixed0:19.3.1-1.module+el8.3.0+7187+a27ec44bRHSA-2020:4641
Red Hat Enterprise Linux 8python3x-setuptoolsFixed0:41.6.0-4.module+el8.3.0+7187+a27ec44bRHSA-2020:4641
Red Hat Enterprise Linux 8pytzFixed0:2019.3-3.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 8scipyFixed0:1.3.1-4.module+el8.2.0+5234+f98739b6RHSA-2020:4641
Red Hat Enterprise Linux 7PyYAMLNot affected
Red Hat Enterprise Linux 6PyYAMLNot affected
AlmaLinux 8python38-CythonFixed0.29.14-4.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux 8python38-PyMySQLFixed0.10.1-1.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux 8python38-asn1cryptoFixed1.2.0-3.module_el8.6.0+2778+cd494b30ALSA-2020:4641
AlmaLinux 8python38-atomicwritesFixed1.3.0-8.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux 8python38-attrsFixed19.3.0-3.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux 8python38-cffiFixed1.13.2-3.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux 8python38-chardetFixed3.0.4-19.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux 8python38-cryptographyFixed2.8-3.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux 8python38-idnaFixed2.8-6.module_el8.6.0+2778+cd494b30ALSA-2020:4641
AlmaLinux 8python38-markupsafeFixed1.1.1-6.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux 8python38-mod_wsgiFixed4.6.8-3.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux 8python38-more-itertoolsFixed7.2.0-5.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux 8python38-packagingFixed19.2-3.module_el8.4.0+2510+cb4d423dALSA-2021:2583
AlmaLinux 8python38-pluggyFixed0.13.0-3.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux 8python38-plyFixed3.11-10.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux 8python38-psycopg2Fixed2.8.4-4.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux 8python38-psycopg2-docFixed2.8.4-4.module_el8.6.0+2778+cd494b30ALSA-2020:4641
AlmaLinux 8python38-psycopg2-testsFixed2.8.4-4.module_el8.6.0+2778+cd494b30ALSA-2020:4641
AlmaLinux 8python38-pyFixed1.8.0-8.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux 8python38-pycparserFixed2.19-3.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux 8python38-pyparsingFixed2.4.5-3.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux 8python38-pysocksFixed1.7.1-4.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux 8python38-pytestFixed4.6.6-3.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux 8python38-pytzFixed2019.3-3.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux 8python38-pyyamlFixed5.4.1-1.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux 8python38-requestsFixed2.22.0-9.module_el8.6.0+2778+cd494b30ALSA-2020:4641
AlmaLinux 8python38-scipyFixed1.3.1-4.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux 8python38-sixFixed1.12.0-10.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux 8python38-wcwidthFixed0.1.7-16.module_el8.4.0+2510+cb4d423dALSA-2021:2583
Rocky Linux 8CythonFixed0:0.29.14-4.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux 8PyYAMLFixed0:5.3.1-1.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux 8babelFixed0:2.7.0-10.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux 8mod_wsgiFixed0:4.6.8-3.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux 8numpyFixed0:1.17.3-5.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux 8python-asn1cryptoFixed0:1.2.0-3.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux 8python-cffiFixed0:1.13.2-3.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux 8python-chardetFixed0:3.0.4-19.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux 8python-cryptographyFixed0:2.8-3.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux 8python-idnaFixed0:2.8-6.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux 8python-jinja2Fixed0:2.10.3-4.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux 8python-markupsafeFixed0:1.1.1-6.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux 8python-psutilFixed0:5.6.4-3.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux 8python-psycopg2Fixed0:2.8.4-4.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux 8python-pycparserFixed0:2.19-3.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux 8python-pysocksFixed0:1.7.1-4.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux 8python-requestsFixed0:2.22.0-9.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux 8python-urllib3Fixed0:1.25.7-4.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux 8python-wheelFixed0:0.33.6-5.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux 8python3x-pipFixed0:19.3.1-1.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux 8python3x-setuptoolsFixed0:41.6.0-4.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux 8pytzFixed0:2019.3-3.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux 8scipyFixed0:1.3.1-4.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Alpine Linux 3.24py3-yamlFixed5.3.1-r0ALPINE-CVE-2020-1747
Alpine Linux 3.23py3-yamlFixed5.3.1-r0ALPINE-CVE-2020-1747
Alpine Linux 3.22py3-yamlFixed5.3.1-r0ALPINE-CVE-2020-1747
Alpine Linux 3.21py3-yamlFixed5.3.1-r0ALPINE-CVE-2020-1747
Alpine Linux 3.20py3-yamlFixed5.3.1-r0ALPINE-CVE-2020-1747
Alpine Linux 3.19py3-yamlFixed5.3.1-r0ALPINE-CVE-2020-1747
Alpine Linux 3.18py3-yamlFixed5.3.1-r0ALPINE-CVE-2020-1747
Alpine Linux 3.17py3-yamlFixed5.3.1-r0ALPINE-CVE-2020-1747
Alpine Linux 3.16py3-yamlFixed5.3.1-r0ALPINE-CVE-2020-1747
Alpine Linux 3.15py3-yamlFixed5.3.1-r0ALPINE-CVE-2020-1747
Alpine Linux 3.14py3-yamlFixed5.3.1-r0ALPINE-CVE-2020-1747
Alpine Linux 3.13py3-yamlFixed5.3.1-r0ALPINE-CVE-2020-1747
Alpine Linux 3.12py3-yamlFixed5.3.1-r0ALPINE-CVE-2020-1747
Alpine Linux 3.11py3-yamlFixed5.3.1-r0ALPINE-CVE-2020-1747
PyPI librarypyyamlFixed5.3.1GHSA-6757-jp84-gxfx

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.