CVE-2017-18342
PyYAML: yaml.load() API could execute arbitrary code
Severidad por fuente
La etiqueta propia de Trivy es CRITICAL. Crítica según NVD, GHSA, Photon OS. Más baja según Red Hat (alta), Oracle (alta).
Descripción
In PyYAML before 5.1, the yaml.load() API could execute arbitrary code if used with untrusted data. The load() function has been deprecated in version 5.1 and the 'UnsafeLoader' has been introduced for backward compatibility with the function.
Paquetes afectados y versiones corregidas
| Fuente | Paquete | Corregido en |
|---|---|---|
| Photon OS 1.0 | PyYAML | 3.12-3.ph1 |
| Photon OS 2.0 | PyYAML | 3.12-3.ph2 |
| Photon OS 3.0 | PyYAML | 3.13-3.ph3 |
| pip::GitHub Security Advisory pip | pyyaml | 5.1 |
| debian 11 | pyyaml | 5.1.2-1 |
| debian 12 | pyyaml | 5.1.2-1 |
| debian 13 | pyyaml | 5.1.2-1 |
| debian 14 | pyyaml | 5.1.2-1 |
| echo | pyyaml | 5.1.2-1 |
| Oracle Linux 8 | ol-automation-manager, ol-automation-manager-cli, python3-olamkit | 1.0.2-1.el8 |
| Red Hat | PyYAML, python2-pyyaml, python27-PyYAML y 3 más | sin corrección indicada |
Mostrar las 18 entradas de 11 fuentes
| Fuente | Paquete | Corregido en |
|---|---|---|
| Photon OS 1.0 | PyYAML | 3.12-3.ph1 |
| Photon OS 2.0 | PyYAML | 3.12-3.ph2 |
| Photon OS 3.0 | PyYAML | 3.13-3.ph3 |
| pip::GitHub Security Advisory pip | pyyaml | 5.1 |
| debian 11 | pyyaml | 5.1.2-1 |
| debian 12 | pyyaml | 5.1.2-1 |
| debian 13 | pyyaml | 5.1.2-1 |
| debian 14 | pyyaml | 5.1.2-1 |
| echo | pyyaml | 5.1.2-1 |
| Oracle Linux 8 | ol-automation-manager | 1.0.2-1.el8 |
| Oracle Linux 8 | ol-automation-manager-cli | 1.0.2-1.el8 |
| Oracle Linux 8 | python3-olamkit | 1.0.2-1.el8 |
| Red Hat | PyYAML | sin corrección indicada |
| Red Hat | python2-pyyaml | sin corrección indicada |
| Red Hat | python27-PyYAML | sin corrección indicada |
| Red Hat | python38-pyyaml | sin corrección indicada |
| Red Hat | python39-pyyaml | sin corrección indicada |
| Red Hat | rh-python36-PyYAML | sin corrección indicada |
Referencias
- https://access.redhat.com/security/cve/CVE-2017-18342
- https://github.com/marshmallow-code/apispec/issues/278
- https://github.com/pypa/advisory-database/tree/main/vulns/pyyaml/PYSEC-2018-49.yaml
- https://github.com/yaml/pyyaml
- https://github.com/yaml/pyyaml/blob/master/CHANGES
- https://github.com/yaml/pyyaml/commit/7b68405c81db889f83c32846462b238ccae5be80
- https://github.com/yaml/pyyaml/issues/193
- https://github.com/yaml/pyyaml/issues/207#issuecomment-472520007
Las 21 referencias
- https://github.com/yaml/pyyaml/pull/74
- https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load%28input%29-Deprecation
- https://linux.oracle.com/cve/CVE-2017-18342.html
- https://linux.oracle.com/errata/ELSA-2022-9341.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JEX7IPV5P2QJITAMA5Z63GQCZA5I6NVZ
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JEX7IPV5P2QJITAMA5Z63GQCZA5I6NVZ/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KSQQMRUQSXBSUXLCRD3TSZYQ7SEZRKCE
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KSQQMRUQSXBSUXLCRD3TSZYQ7SEZRKCE/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/M6JCFGEIEOFMWWIXGHSELMKQDD4CV2BA
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/M6JCFGEIEOFMWWIXGHSELMKQDD4CV2BA/
- https://nvd.nist.gov/vuln/detail/CVE-2017-18342
- https://security.gentoo.org/glsa/202003-45
- https://www.cve.org/CVERecord?id=CVE-2017-18342