Improper Input Validation in PyYAML
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.
Software afectado
Haz clic en una tecnología para ver todas sus vulnerabilidades.
| Plataforma | Paquete | Versiones vulnerables | Corregida en |
|---|---|---|---|
| Python (PyPI) | pyyaml | < 5.4 | 5.4 |
Referencias
- https://bugzilla.redhat.com/show_bug.cgi?id=1860466
- https://github.com/advisories/GHSA-8q59-q68h-6hv4
- https://nvd.nist.gov/vuln/detail/CVE-2020-14343
- https://github.com/SeldonIO/seldon-core/issues/2252
- https://github.com/yaml/pyyaml/issues/420
- https://github.com/yaml/pyyaml/issues/420#issuecomment-663673966
- https://github.com/yaml/pyyaml/commit/a001f2782501ad2d24986959f0239a354675f9dc
- https://github.com/pypa/advisory-database/tree/main/vulns/pyyaml/PYSEC-2021-142.yaml
- https://github.com/yaml/pyyaml
- https://pypi.org/project/PyYAML
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://www.oracle.com/security-alerts/cpujul2022.html
- Vector CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- Debilidad (CWE)
CWE-20- Plataforma
- Python (PyPI)
- Paquete
pyyaml- Publicada
- 09.02.2021
- Actualizado
- 11.10.2026 12:19
Fuentes y licencias
OSV / GitHub Advisory Database - PYSEC-2021-142 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-8q59-q68h-6hv4 - CC BY 4.0
Historial de vulnerabilidades: pyyaml
Todas las vulnerabilidades publicadas de este paquete (Python (PyPI)), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.
- Entradas en total
- 4
- Primera → última
- 06.2018 02.2021
- Sin corrección
- 0
- Explotada en ataques
- 0
Distribución por gravedad
- Crítica 4
Divulgaciones por año
- 2018: 1
- 2019: 0
- 2020: 2
- 2021: 1
- 2022: 0
- 2023: 0
- 2024: 0
- 2025: 0
- 2026: 0
-
Improper Input Validation in PyYAML esta entrada
Identifica las vulnerabilidades de tu aplicación
Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.