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 package | Versions | Reported by |
|---|---|---|
| PyYAML | PyYAML 5.4 | CVE List |
| pyyaml (PyPI) | before 5.4 | GitHub Advisory Database, PyPA Advisory Database |
| pyyaml pyyaml | from 5.1 before 5.4 | NVD |
| oracle communications_cloud_native_core_network_function_cloud_native_environment | 1.10.0, 22.1.0 | NVD |
All scores
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | critical CVSS:4.0 | 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 | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 10.0high CVSS:2.0 | AV: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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-14343 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-8q59-q68h-6hv4 changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2020-14343 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-142 changed 2023-11-08 | CC-BY-4.0 |