Vulnerability · Published Mar 24, 2020 · Assigned by redhat

CVE-2020-1747

Critical 9.8

In plain English

A critical-severity improper input validation in PyYAML from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 5.4% (higher than 93% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)5.4%top 7.2% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Public PoC

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8python38-Cython0.29.14-4.module_el8.6.0+2778+cd494b30ALSA-2020:4641
AlmaLinux:8python38-Cython0.29.14-4.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux:8python38-PyMySQL0.10.1-1.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux:8python38-asn1crypto1.2.0-3.module_el8.6.0+2778+cd494b30ALSA-2020:4641
AlmaLinux:8python38-asn1crypto1.2.0-3.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux:8python38-atomicwrites1.3.0-8.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux:8python38-atomicwrites1.3.0-8.module_el8.4.0+2510+cb4d423dALSA-2021:2583
AlmaLinux:8python38-attrs19.3.0-3.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux:8python38-attrs19.3.0-3.module_el8.4.0+2510+cb4d423dALSA-2021:2583
AlmaLinux:8python38-cffi1.13.2-3.module_el8.6.0+2778+cd494b30ALSA-2020:4641
AlmaLinux:8python38-cffi1.13.2-3.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux:8python38-chardet3.0.4-19.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux:8python38-chardet3.0.4-19.module_el8.6.0+2778+cd494b30ALSA-2020:4641
AlmaLinux:8python38-cryptography2.8-3.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux:8python38-cryptography2.8-3.module_el8.6.0+2778+cd494b30ALSA-2020:4641
AlmaLinux:8python38-idna2.8-6.module_el8.6.0+2778+cd494b30ALSA-2020:4641
AlmaLinux:8python38-idna2.8-6.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux:8python38-markupsafe1.1.1-6.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux:8python38-markupsafe1.1.1-6.module_el8.6.0+2778+cd494b30ALSA-2020:4641
AlmaLinux:8python38-mod_wsgi4.6.8-3.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux:8python38-mod_wsgi4.6.8-3.module_el8.6.0+2778+cd494b30ALSA-2020:4641
AlmaLinux:8python38-more-itertools7.2.0-5.module_el8.4.0+2510+cb4d423dALSA-2021:2583
AlmaLinux:8python38-more-itertools7.2.0-5.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux:8python38-packaging19.2-3.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux:8python38-packaging19.2-3.module_el8.4.0+2510+cb4d423dALSA-2021:2583
AlmaLinux:8python38-pluggy0.13.0-3.module_el8.4.0+2510+cb4d423dALSA-2021:2583
AlmaLinux:8python38-pluggy0.13.0-3.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux:8python38-ply3.11-10.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux:8python38-psycopg22.8.4-4.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux:8python38-psycopg22.8.4-4.module_el8.6.0+2778+cd494b30ALSA-2020:4641
AlmaLinux:8python38-psycopg2-doc2.8.4-4.module_el8.6.0+2778+cd494b30ALSA-2020:4641
AlmaLinux:8python38-psycopg2-doc2.8.4-4.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux:8python38-psycopg2-tests2.8.4-4.module_el8.6.0+2778+cd494b30ALSA-2020:4641
AlmaLinux:8python38-psycopg2-tests2.8.4-4.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux:8python38-py1.8.0-8.module_el8.4.0+2510+cb4d423dALSA-2021:2583
AlmaLinux:8python38-py1.8.0-8.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux:8python38-pycparser2.19-3.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux:8python38-pycparser2.19-3.module_el8.6.0+2778+cd494b30ALSA-2020:4641
AlmaLinux:8python38-pyparsing2.4.5-3.module_el8.4.0+2510+cb4d423dALSA-2021:2583
AlmaLinux:8python38-pyparsing2.4.5-3.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux:8python38-pysocks1.7.1-4.module_el8.6.0+2778+cd494b30ALSA-2020:4641
AlmaLinux:8python38-pysocks1.7.1-4.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux:8python38-pytest4.6.6-3.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux:8python38-pytest4.6.6-3.module_el8.4.0+2510+cb4d423dALSA-2021:2583
AlmaLinux:8python38-pytz2019.3-3.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux:8python38-pytz2019.3-3.module_el8.6.0+2778+cd494b30ALSA-2020:4641
AlmaLinux:8python38-pyyaml5.4.1-1.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux:8python38-requests2.22.0-9.module_el8.6.0+2778+cd494b30ALSA-2020:4641
AlmaLinux:8python38-requests2.22.0-9.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux:8python38-scipy1.3.1-4.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux:8python38-scipy1.3.1-4.module_el8.6.0+2778+cd494b30ALSA-2020:4641
AlmaLinux:8python38-six1.12.0-10.module_el8.6.0+2778+cd494b30ALSA-2021:2583
AlmaLinux:8python38-wcwidth0.1.7-16.module_el8.4.0+2510+cb4d423dALSA-2021:2583
AlmaLinux:8python38-wcwidth0.1.7-16.module_el8.6.0+2778+cd494b30ALSA-2021:2583
Alpine:v3.20py3-yaml5.3.1-r0ALPINE-CVE-2020-1747
Alpine:v3.21py3-yaml5.3.1-r0ALPINE-CVE-2020-1747
Alpine:v3.22py3-yaml5.3.1-r0ALPINE-CVE-2020-1747
Alpine:v3.23py3-yaml5.3.1-r0ALPINE-CVE-2020-1747
Alpine:v3.24py3-yaml5.3.1-r0ALPINE-CVE-2020-1747
Debian:12pyyaml5.3-2DEBIAN-CVE-2020-1747
Debian:13pyyaml5.3-2DEBIAN-CVE-2020-1747
Debian:14pyyaml5.3-2DEBIAN-CVE-2020-1747
PyPIpyyaml5.3.1GHSA-6757-jp84-gxfx
PyPIpyyaml5.3.1PYSEC-2020-96
Rocky Linux:8Cython0:0.29.14-4.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux:8PyYAML0:5.3.1-1.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux:8babel0:2.7.0-10.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux:8mod_wsgi0:4.6.8-3.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux:8numpy0:1.17.3-5.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux:8python-asn1crypto0:1.2.0-3.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux:8python-cffi0:1.13.2-3.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux:8python-chardet0:3.0.4-19.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux:8python-cryptography0:2.8-3.module+el8.5.0+672+ab6eb015RLSA-2020:4641
Rocky Linux:8python-cryptography0:2.8-3.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux:8python-idna0:2.8-6.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux:8python-jinja20:2.10.3-4.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux:8python-markupsafe0:1.1.1-6.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux:8python-psutil0:5.6.4-3.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux:8python-psycopg20:2.8.4-4.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux:8python-psycopg20:2.8.4-4.module+el8.6.0+794+eba84017RLSA-2020:4641
Rocky Linux:8python-pycparser0:2.19-3.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux:8python-pysocks0:1.7.1-4.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux:8python-requests0:2.22.0-9.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux:8python-urllib30:1.25.7-4.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux:8python-wheel0:0.33.6-5.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux:8python3x-pip0:19.3.1-1.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux:8python3x-setuptools0:41.6.0-4.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux:8pytz0:2019.3-3.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux:8scipy0:1.3.1-4.module+el8.4.0+570+c2eaf144RLSA-2020:4641
Rocky Linux:8scipy0:1.3.1-4.module+el8.5.0+672+ab6eb015RLSA-2020:4641

Affected products (as reported)

VendorProductVersions
Red Hat PyYAML 5.3.1

Weakness: CWE-20 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References