# CVE-2020-14343: Improper Input Validation in PyYAML

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 6.24%, higher than 93% of CVEs (2026-12-01)
- Published: 2021-02-09T00:00:00.000Z
- Modified: 2026-06-17T02:54:34.453Z
- Also known as: GHSA-8q59-q68h-6hv4, PYSEC-2021-142
- Related: CVE-2026-24009
- Weaknesses: CWE-20
- Assigned by: redhat

## Description

A vulnerability was discovered in the PyYAML library in versions before 5.4, 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. This flaw allows an attacker to execute arbitrary code on the system by abusing the python/object/new constructor. This flaw is due to an incomplete fix for CVE-2020-1747.

(As written by CVE List.)

## Affected

- PyYAML: PyYAML 5.4
- pyyaml (PyPI): before 5.4
- pyyaml pyyaml: from 5.1 before 5.4
- oracle communications_cloud_native_core_network_function_cloud_native_environment: 1.10.0; 22.1.0

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 10.0 High `AV:N/AC:L/Au:N/C:C/I:C/A:C`

## References

- <https://github.com/yaml/pyyaml/issues/420> (web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=1860466> (issue-tracking, report, third-party-advisory, web)
- <https://www.oracle.com/security-alerts/cpuapr2022.html> (patch, third-party-advisory, web)
- <https://www.oracle.com/security-alerts/cpujul2022.html> (patch, third-party-advisory, web)
- <https://github.com/SeldonIO/seldon-core/issues/2252> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-14343> (advisory)
- <https://github.com/yaml/pyyaml/issues/420#issuecomment-663673966> (web)
- <https://github.com/yaml/pyyaml/commit/a001f2782501ad2d24986959f0239a354675f9dc> (web)
- <https://github.com/advisories/GHSA-8q59-q68h-6hv4> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pyyaml/PYSEC-2021-142.yaml> (web)
- <https://github.com/yaml/pyyaml> (package)
- <https://pypi.org/project/PyYAML> (web)

## Sources

- CVE List: [CVE-2020-14343](https://www.cve.org/CVERecord?id=CVE-2020-14343), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-8q59-q68h-6hv4](https://github.com/advisories/GHSA-8q59-q68h-6hv4), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2020-14343](https://nvd.nist.gov/vuln/detail/CVE-2020-14343), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-142](https://osv.dev/vulnerability/PYSEC-2021-142), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2020-14343 · Whole record: https://cve.day/CVE-2020-14343.json · Rebuilt by cve.day 2026-11-25T22:57:57.317Z
