GHSA-rprw-h62v-c2w7
PyYAML insecurely deserializes YAML strings leading to arbitrary code execution
At a glance
- Published
- Updated
- CVE
- CVE-2017-18342
- Aliases
- PYSEC-2018-49
- CVSS_V3
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Description
In PyYAML before 5.1, the `yaml.load()` API could execute arbitrary code. In other words, `yaml.safe_load` is not used. This was intended to be fixed in 4.1, but due to [breaking changes](https://github.com/yaml/pyyaml/issues/192#issuecomment-401491470), 4.1 was yanked and 5.1 [contains](https://github.com/yaml/pyyaml/issues/207#issuecomment-472520007) the patch for CVE-2017-18342.
Affected packages
| Package | Versions |
|---|---|
| PyPI · pyyaml | introduced 0, fixed 5.1 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-18342 ADVISORY
- https://github.com/marshmallow-code/apispec/issues/278 WEB
- https://github.com/yaml/pyyaml/issues/193 WEB
- https://github.com/yaml/pyyaml/issues/207#issuecomment-472520007 WEB
- https://github.com/yaml/pyyaml/pull/74 WEB
- https://github.com/yaml/pyyaml/commit/7b68405c81db889f83c32846462b238ccae5be80 WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/pyyaml/PYSEC-2018-49.yaml WEB
- https://github.com/yaml/pyyaml PACKAGE
- https://github.com/yaml/pyyaml/blob/master/CHANGES WEB
- https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JEX7IPV5P2QJITAMA5Z63GQCZA5I6NVZ WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KSQQMRUQSXBSUXLCRD3TSZYQ7SEZRKCE WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/M6JCFGEIEOFMWWIXGHSELMKQDD4CV2BA WEB
- https://security.gentoo.org/glsa/202003-45 WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — GitHub Advisory Database |