CVE-2020-14343
JSON

9.8critical

Improper Input Validation in PyYAML

Severity
9.8critical CVSS:3.1 by NVD
Exploit likelihood
6.24% (higher than 93% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
redhat
Also known as
GHSA-8q59-q68h-6hv4PYSEC-2021-142

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.

Affected

Product or packageVersionsReported by
PyYAMLPyYAML 5.4CVE List
pyyaml (PyPI)before 5.4GitHub Advisory Database, PyPA Advisory Database
pyyaml pyyamlfrom 5.1 before 5.4NVD
oracle communications_cloud_native_core_network_function_cloud_native_environment1.10.0, 22.1.0NVD

All scores

GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHubcritical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD10.0high CVSS:2.0AV:N/AC:L/Au:N/C:C/I:C/A:C

Classification

What each source says

CVE List

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.

NVD (es)

Se detectó una vulnerabilidad en la biblioteca PyYAML en versiones anteriores a 5.4, donde es susceptible una ejecución de código arbitrario cuando se procesan archivos YAML no confiables por medio del método full_load o con el cargador FullLoader. Unas aplicaciones que usan la biblioteca para procesar entradas que no son confiables pueden ser vulnerables a este fallo. Este fallo le permite a un atacante ejecutar código arbitrario en el sistema abusando del constructor python/object/new. Este fallo se debe a una corrección incompleta para CVE-2020-1747

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2020-14343 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-8q59-q68h-6hv4 changed 2026-02-04CC-BY-4.0
NVDCVE-2020-14343 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2021-142 changed 2023-11-08CC-BY-4.0