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 6.2% estimated probability of exploitation activity in the next 30 days. Fixed in pyyaml 5.4.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:Hpyyaml (PyPI): fixed in 5.4Explain CVE-2020-14343 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-14343?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-14343?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-2020-14343 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 before 5.4 |
| oracle:communications_cloud_native_core_network_function_cloud_native_environment | 1.10.0 |
| oracle:communications_cloud_native_core_network_function_cloud_native_environment | 22.1.0 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-8q59-q68h-6hv4 | PyPI | pyyaml | <5.4 | 5.4 |
| PYSEC-2021-142 | PyPI | pyyaml | <5.4 | 5.4 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12, 13, 14 | pyyaml | 5.3.1-4 | DEBIAN-CVE-2020-14343 |
| Ubuntu | 20.04:LTS | pyyaml | 5.3.1-1ubuntu0.1 | UBUNTU-CVE-2020-14343 USN-4940-1 |
| Red Hat | enterprise_linux:8::appstream | Cython, python38-Cython, Cython-debugsource and 1 more | 0:0.29.14-4.module+el8.4.0+8888+89bc7e79 | RHSA-2021:2583 |
| Red Hat | enterprise_linux:8::appstream | PyYAML, python38-pyyaml, PyYAML-debugsource and 1 more | 0:5.4.1-1.module+el8.4.0+10706+5c295a3e | RHSA-2021:2583 |
| Red Hat | enterprise_linux:8::appstream | babel, python38-babel | 0:2.7.0-10.module+el8.4.0+8888+89bc7e79 | RHSA-2021:2583 |
| Red Hat | enterprise_linux:8::appstream | mod_wsgi, python38-mod_wsgi | 0:4.6.8-3.module+el8.4.0+8888+89bc7e79 | RHSA-2021:2583 |
| Red Hat | enterprise_linux:8::appstream | numpy, python38-numpy, numpy-debugsource and 3 more | 0:1.17.3-5.module+el8.4.0+8888+89bc7e79 | RHSA-2021:2583 |
| Red Hat | enterprise_linux:8::appstream | python-PyMySQL, python38-PyMySQL | 0:0.10.1-1.module+el8.4.0+9692+8e86ab84 | RHSA-2021:2583 |
| Red Hat | enterprise_linux:8::appstream | python-asn1crypto, python38-asn1crypto | 0:1.2.0-3.module+el8.4.0+8888+89bc7e79 | RHSA-2021:2583 |
| Red Hat | enterprise_linux:8::appstream | python-cffi, python38-cffi, python-cffi-debugsource and 1 more | 0:1.13.2-3.module+el8.4.0+8888+89bc7e79 | RHSA-2021:2583 |
| Red Hat | enterprise_linux:8::appstream | python-chardet, python38-chardet | 0:3.0.4-19.module+el8.4.0+8888+89bc7e79 | RHSA-2021:2583 |
| Red Hat | enterprise_linux:8::appstream | python-cryptography, python38-cryptography, python-cryptography-debugsource and 1 more | 0:2.8-3.module+el8.4.0+8888+89bc7e79 | RHSA-2021:2583 |
| Red Hat | enterprise_linux:8::appstream | python-idna, python38-idna | 0:2.8-6.module+el8.4.0+8888+89bc7e79 | RHSA-2021:2583 |
| Red Hat | enterprise_linux:8::appstream | python-jinja2, python38-jinja2 | 0:2.10.3-4.module+el8.4.0+8888+89bc7e79 | RHSA-2021:2583 |
| 39 more for Red Hat in the JSON and on Red Hat's page. | ||||
| SUSE | Enterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 9 more | python-PyYAML | 5.3.1-6.10.1 | SUSE-RU-2021:0985-1 |
| SUSE | Enterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 9 more | python-pytz | 2019.1-6.4.1 | SUSE-RU-2021:0985-1 |
| SUSE | Enterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 9 more | python-requests | 2.24.0-6.10.2 | SUSE-RU-2021:0985-1 |
| SUSE | Enterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 11 more | python-blinker | 1.4-3.4.1 | SUSE-RU-2021:0985-1 |
| SUSE | Enterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 11 more | python-ecdsa | 0.13.3-3.7.1 | SUSE-RU-2021:0985-1 |
| SUSE | Enterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 11 more | python-oauthlib | 2.0.6-3.4.1 | SUSE-RU-2021:0985-1 |
| SUSE | Enterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 9 more | python-requests-oauthlib | 0.8.0-3.4.1 | SUSE-RU-2021:0985-1 |
| SUSE | Enterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 10 more | python-adal | 1.2.4-7.4.1 | SUSE-RU-2021:0985-1 |
| SUSE | Enterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 8 more | python-websocket-client | 0.57.0-6.4.1 | SUSE-RU-2021:0985-1 |
| SUSE | Enterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 7 more | python-Pygments | 2.6.1-7.4.1 | SUSE-RU-2021:0985-1 |
| SUSE | Enterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 10 more | python-nose | 1.3.7-7.4.1 | SUSE-RU-2021:0985-1 |
| SUSE | Enterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 8 more | python-PyJWT | 1.7.1-6.4.1 | SUSE-RU-2021:0985-1 |
| 149 more for SUSE in the JSON and on SUSE's page. | ||||
| openSUSE | Tumbleweed | oci-cli | 3.0.2-1.2 | openSUSE-SU-2024:11108-1 |
| openSUSE | Tumbleweed | python-PyYAML | 5.4.1-1.6 | openSUSE-SU-2024:11210-1 |
| openSUSE | Tumbleweed | python-PyYAML | 6.0.1-4.1 | openSUSE-SU-2024:14089-1 |
| openSUSE | Tumbleweed | python-PyYAML | 6.0.3-1.6 | openSUSE-SU-2026:11996-1 |
| AlmaLinux | 8 | python38-Cython | 0.29.14-4.module_el8.6.0+2778+cd494b30 | ALSA-2021:2583 |
| AlmaLinux | 8 | python38-PyMySQL | 0.10.1-1.module_el8.6.0+2778+cd494b30 | ALSA-2021:2583 |
| AlmaLinux | 8 | python38-asn1crypto | 1.2.0-3.module_el8.6.0+2778+cd494b30 | ALSA-2021:2583 |
| AlmaLinux | 8 | python38-atomicwrites | 1.3.0-8.module_el8.4.0+2510+cb4d423d | ALSA-2021:2583 |
| AlmaLinux | 8 | python38-atomicwrites | 1.3.0-8.module_el8.6.0+2778+cd494b30 | ALSA-2021:2583 |
| AlmaLinux | 8 | python38-attrs | 19.3.0-3.module_el8.4.0+2510+cb4d423d | ALSA-2021:2583 |
| AlmaLinux | 8 | python38-attrs | 19.3.0-3.module_el8.6.0+2778+cd494b30 | ALSA-2021:2583 |
| AlmaLinux | 8 | python38-cffi | 1.13.2-3.module_el8.6.0+2778+cd494b30 | ALSA-2021:2583 |
| AlmaLinux | 8 | python38-chardet | 3.0.4-19.module_el8.6.0+2778+cd494b30 | ALSA-2021:2583 |
| AlmaLinux | 8 | python38-cryptography | 2.8-3.module_el8.6.0+2778+cd494b30 | ALSA-2021:2583 |
| AlmaLinux | 8 | python38-idna | 2.8-6.module_el8.6.0+2778+cd494b30 | ALSA-2021:2583 |
| AlmaLinux | 8 | python38-markupsafe | 1.1.1-6.module_el8.6.0+2778+cd494b30 | ALSA-2021:2583 |
| 24 more for AlmaLinux in the JSON. | ||||
| Rocky Linux | 8 | Cython | 0:0.29.14-4.module+el8.4.0+570+c2eaf144 | RLSA-2021:2583 |
| Rocky Linux | 8 | PyYAML | 0:5.4.1-1.module+el8.4.0+574+843c4898 | RLSA-2021:2583 |
| Rocky Linux | 8 | PyYAML | 0:5.4.1-1.module+el8.5.0+672+ab6eb015 | RLSA-2021:2583 |
| Rocky Linux | 8 | babel | 0:2.7.0-10.module+el8.4.0+570+c2eaf144 | RLSA-2021:2583 |
| Rocky Linux | 8 | mod_wsgi | 0:4.6.8-3.module+el8.4.0+570+c2eaf144 | RLSA-2021:2583 |
| Rocky Linux | 8 | numpy | 0:1.17.3-5.module+el8.4.0+570+c2eaf144 | RLSA-2021:2583 |
| Rocky Linux | 8 | pytest | 0:4.6.6-3.module+el8.4.0+570+c2eaf144 | RLSA-2021:2583 |
| Rocky Linux | 8 | python-PyMySQL | 0:0.10.1-1.module+el8.4.0+570+c2eaf144 | RLSA-2021:2583 |
| Rocky Linux | 8 | python-PyMySQL | 0:0.10.1-1.module+el8.5.0+672+ab6eb015 | RLSA-2021:2583 |
| Rocky Linux | 8 | python-asn1crypto | 0:1.2.0-3.module+el8.4.0+570+c2eaf144 | RLSA-2021:2583 |
| Rocky Linux | 8 | python-atomicwrites | 0:1.3.0-8.module+el8.4.0+570+c2eaf144 | RLSA-2021:2583 |
| Rocky Linux | 8 | python-attrs | 0:19.3.0-3.module+el8.4.0+570+c2eaf144 | RLSA-2021:2583 |
| 30 more for Rocky Linux in the JSON. | ||||
| Alpine | v3.11, v3.12 | py3-yaml | 5.3.1-r1 | ALPINE-CVE-2020-14343 |
| Alpine | v3.13 | py3-yaml | 5.3.1-r2 | ALPINE-CVE-2020-14343 |
| Alpine | v3.14, v3.15, v3.16 and 8 more | py3-yaml | 5.4-r0 | ALPINE-CVE-2020-14343 |
| Azure Linux | 2 | PyYAML | 5.4.1-1 | AZL-31782 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.
Red Hat rates this Moderate.
This CVE has already been fixed in RHEL-9 with initial release of PyYaml v5.4-1.
Ansible Tower 3.7 uses affected version of PyYAML 3.12 from RHEL, but the use of load() is specified with a SafeLoader when it is called. So Ansible Tower and Ansible Engine are not affected.
Red Hat Quay, from version 3.4 uses the safe_load function which is not affected by this issue. See [1].
Even though the CVSSv3 for this flaw is 9.8, the Impact has been set to Moderate because PyYAML provides a specific method to deal with untrusted input, which is `yaml.safe_load`. `yaml.safe_load` or the SafeLoader loader should be used whenever the input YAML can be modified by a malicious user.
[1] https://github.com/quay/quay/pull/603
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-8040020210420090415.6dfe838a | Fixed 2021-06-29 | RHSA-2021:2583 |
| Red Hat Enterprise Linux 8 | python38-devel:3.8-8040020210420090415.6dfe838a | Fixed 2021-06-29 | RHSA-2021:2583 |
| Red Hat Satellite 6.10 for RHEL 7 | python-pyyaml-0:5.4.1-1.el7pc | Fixed 2021-11-16 | RHSA-2021:4702 |
| Red Hat Ansible Tower 3 | python3-PyYAML | Not affected | |
| Red Hat Ansible Tower 3 | PyYAML | Not affected | |
| Red Hat Enterprise Linux 6 | PyYAML | Not affected | |
| Red Hat Enterprise Linux 7 | PyYAML | Not affected | |
| Red Hat Enterprise Linux 8 | python27:2.7/PyYAML | Not affected | |
| Red Hat Enterprise Linux 8 | python39:3.9/PyYAML | Not affected | |
| Red Hat Enterprise Linux 8 | PyYAML | Not affected | |
| Red Hat Enterprise Linux 9 | PyYAML | Not affected | |
| Red Hat OpenStack Platform 10 (Newton) | PyYAML | Not affected | |
| Red Hat OpenStack Platform 13 (Queens) | PyYAML | Not affected | |
| Red Hat Quay 3 | quay | Not affected | |
| Red Hat Software Collections | python27-PyYAML | Not affected | |
| Red Hat Software Collections | rh-python36-PyYAML | Not affected | |
| Red Hat Software Collections | rh-python38-PyYAML | Will not fix |
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-2020-14343.
Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).