Vulnerabilities / CVE-2020-1747

critical

CVE-2020-1747

PyYAML: arbitrary command execution through python/object/new when FullLoader is used

Published Modified CWE 20
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA9.3CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, GHSA, CBL-Mariner, Photon OS. Rated lower by Red Hat (medium), AlmaLinux (medium), Oracle (medium), Rocky Linux (medium).

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 and fixed versions

SourcePackageFixed in
CBL-Mariner 2.0PyYAML0:5.4.1-1.cm2
Photon OS 1.0PyYAML3.12-5.ph1
Photon OS 2.0PyYAML3.12-6.ph2
Photon OS 3.0PyYAML3.13-5.ph3
pip::GitHub Security Advisory pippyyaml5.3.1
alma 8python38:3.8::python38-Cython, python38:3.8::python38-asn1crypto, python38:3.8::python38-cffi and 13 more0.29.14-4.module_el8.6.0+2778+cd494b30 and 13 more
alpine 3.11py3-yaml5.3.1-r0
alpine 3.12py3-yaml5.3.1-r0
alpine 3.13py3-yaml5.3.1-r0
alpine 3.14py3-yaml5.3.1-r0
alpine 3.15py3-yaml5.3.1-r0
alpine 3.16py3-yaml5.3.1-r0
Show all 113 entries from 28 sources
SourcePackageFixed in
CBL-Mariner 2.0PyYAML0:5.4.1-1.cm2
Photon OS 1.0PyYAML3.12-5.ph1
Photon OS 2.0PyYAML3.12-6.ph2
Photon OS 3.0PyYAML3.13-5.ph3
pip::GitHub Security Advisory pippyyaml5.3.1
alma 8python38:3.8::python38-Cython0.29.14-4.module_el8.6.0+2778+cd494b30
alma 8python38:3.8::python38-asn1crypto1.2.0-3.module_el8.6.0+2778+cd494b30
alma 8python38:3.8::python38-cffi1.13.2-3.module_el8.6.0+2778+cd494b30
alma 8python38:3.8::python38-chardet3.0.4-19.module_el8.6.0+2778+cd494b30
alma 8python38:3.8::python38-cryptography2.8-3.module_el8.6.0+2778+cd494b30
alma 8python38:3.8::python38-idna2.8-6.module_el8.6.0+2778+cd494b30
alma 8python38:3.8::python38-markupsafe1.1.1-6.module_el8.6.0+2778+cd494b30
alma 8python38:3.8::python38-mod_wsgi4.6.8-3.module_el8.6.0+2778+cd494b30
alma 8python38:3.8::python38-psycopg22.8.4-4.module_el8.6.0+2778+cd494b30
alma 8python38:3.8::python38-psycopg2-doc2.8.4-4.module_el8.6.0+2778+cd494b30
alma 8python38:3.8::python38-psycopg2-tests2.8.4-4.module_el8.6.0+2778+cd494b30
alma 8python38:3.8::python38-pycparser2.19-3.module_el8.6.0+2778+cd494b30
alma 8python38:3.8::python38-pysocks1.7.1-4.module_el8.6.0+2778+cd494b30
alma 8python38:3.8::python38-pytz2019.3-3.module_el8.6.0+2778+cd494b30
alma 8python38:3.8::python38-requests2.22.0-9.module_el8.6.0+2778+cd494b30
alma 8python38:3.8::python38-scipy1.3.1-4.module_el8.6.0+2778+cd494b30
alpine 3.11py3-yaml5.3.1-r0
alpine 3.12py3-yaml5.3.1-r0
alpine 3.13py3-yaml5.3.1-r0
alpine 3.14py3-yaml5.3.1-r0
alpine 3.15py3-yaml5.3.1-r0
alpine 3.16py3-yaml5.3.1-r0
alpine 3.17py3-yaml5.3.1-r0
alpine 3.18py3-yaml5.3.1-r0
alpine 3.19py3-yaml5.3.1-r0
alpine 3.20py3-yaml5.3.1-r0
alpine 3.21py3-yaml5.3.1-r0
alpine 3.22py3-yaml5.3.1-r0
alpine 3.23py3-yaml5.3.1-r0
alpine 3.24py3-yaml5.3.1-r0
alpine edgepy3-yaml5.3.1-r0
debian 11pyyaml5.3-2
debian 12pyyaml5.3-2
debian 13pyyaml5.3-2
debian 14pyyaml5.3-2
echopyyaml5.3-2
Oracle Linux 8python383.8.3-3.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-Cython0.29.14-4.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-PyMySQL0.9.3-3.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-asn1crypto1.2.0-3.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-babel2.7.0-10.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-cffi1.13.2-3.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-chardet3.0.4-19.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-cryptography2.8-3.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-debug3.8.3-3.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-devel3.8.3-3.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-idle3.8.3-3.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-idna2.8-6.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-jinja22.10.3-4.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-libs3.8.3-3.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-lxml4.4.1-4.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-markupsafe1.1.1-6.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-mod_wsgi4.6.8-3.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-numpy1.17.3-5.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-numpy-doc1.17.3-5.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-numpy-f2py1.17.3-5.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-pip19.3.1-1.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-pip-wheel19.3.1-1.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-ply3.11-8.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-psutil5.6.4-3.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-psycopg22.8.4-4.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-psycopg2-doc2.8.4-4.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-psycopg2-tests2.8.4-4.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-pycparser2.19-3.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-pysocks1.7.1-4.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-pytz2019.3-3.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-pyyaml5.3.1-1.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-requests2.22.0-9.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-rpm-macros3.8.3-3.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-scipy1.3.1-4.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-setuptools41.6.0-4.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-setuptools-wheel41.6.0-4.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-six1.12.0-9.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-test3.8.3-3.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-tkinter3.8.3-3.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-urllib31.25.7-4.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-wheel0.33.6-5.module+el8.3.0+7824+e0098946
Oracle Linux 8python38-wheel-wheel0.33.6-5.module+el8.3.0+7824+e0098946
rocky 8python38:3.8::python38-Cython0.29.14-4.module+el8.4.0+570+c2eaf144
rocky 8python38:3.8::python38-asn1crypto1.2.0-3.module+el8.4.0+570+c2eaf144
rocky 8python38:3.8::python38-babel2.7.0-10.module+el8.4.0+570+c2eaf144
rocky 8python38:3.8::python38-cffi1.13.2-3.module+el8.4.0+570+c2eaf144
rocky 8python38:3.8::python38-chardet3.0.4-19.module+el8.4.0+570+c2eaf144
rocky 8python38:3.8::python38-cryptography2.8-3.module+el8.5.0+672+ab6eb015
rocky 8python38:3.8::python38-idna2.8-6.module+el8.4.0+570+c2eaf144
rocky 8python38:3.8::python38-jinja22.10.3-4.module+el8.4.0+570+c2eaf144
rocky 8python38:3.8::python38-markupsafe1.1.1-6.module+el8.4.0+570+c2eaf144
rocky 8python38:3.8::python38-mod_wsgi4.6.8-3.module+el8.4.0+570+c2eaf144
rocky 8python38:3.8::python38-numpy1.17.3-5.module+el8.4.0+570+c2eaf144
rocky 8python38:3.8::python38-numpy-doc1.17.3-5.module+el8.4.0+570+c2eaf144
rocky 8python38:3.8::python38-numpy-f2py1.17.3-5.module+el8.4.0+570+c2eaf144
rocky 8python38:3.8::python38-pip19.3.1-1.module+el8.4.0+570+c2eaf144
rocky 8python38:3.8::python38-pip-wheel19.3.1-1.module+el8.4.0+570+c2eaf144
rocky 8python38:3.8::python38-psutil5.6.4-3.module+el8.4.0+570+c2eaf144
rocky 8python38:3.8::python38-psycopg22.8.4-4.module+el8.6.0+794+eba84017
rocky 8python38:3.8::python38-psycopg2-doc2.8.4-4.module+el8.6.0+794+eba84017
rocky 8python38:3.8::python38-psycopg2-tests2.8.4-4.module+el8.6.0+794+eba84017
rocky 8python38:3.8::python38-pycparser2.19-3.module+el8.4.0+570+c2eaf144
rocky 8python38:3.8::python38-pysocks1.7.1-4.module+el8.4.0+570+c2eaf144
rocky 8python38:3.8::python38-pytz2019.3-3.module+el8.4.0+570+c2eaf144
rocky 8python38:3.8::python38-pyyaml5.3.1-1.module+el8.4.0+570+c2eaf144
rocky 8python38:3.8::python38-requests2.22.0-9.module+el8.4.0+570+c2eaf144
rocky 8python38:3.8::python38-scipy1.3.1-4.module+el8.5.0+672+ab6eb015
rocky 8python38:3.8::python38-setuptools41.6.0-4.module+el8.4.0+570+c2eaf144
rocky 8python38:3.8::python38-setuptools-wheel41.6.0-4.module+el8.4.0+570+c2eaf144
rocky 8python38:3.8::python38-urllib31.25.7-4.module+el8.4.0+570+c2eaf144
rocky 8python38:3.8::python38-wheel0.33.6-5.module+el8.4.0+570+c2eaf144
rocky 8python38:3.8::python38-wheel-wheel0.33.6-5.module+el8.4.0+570+c2eaf144

References

All 48 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.