Critical severity9.8NVD Advisory· Published Jun 27, 2018· Updated Jun 17, 2026
CVE-2017-18342
CVE-2017-18342
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
PyYAMLPyPI | < 4.1 | 4.1 |
Affected products
4- ghsa-coords4 versionspkg:pypi/pyyamlpkg:rpm/opensuse/oci-cli&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/python-openapi-spec-validator&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/python-PyYAML&distro=openSUSE%20Tumbleweed
< 4.1+ 3 more
- (no CPE)range: < 4.1
- (no CPE)range: < 3.0.2-1.2
- (no CPE)range: < 0.7.1-1.3
- (no CPE)range: < 5.4.1-1.6
Patches
Vulnerability mechanics
References
15- github.com/yaml/pyyaml/pull/74nvdPatchThird Party AdvisoryWEB
- github.com/advisories/GHSA-rprw-h62v-c2w7ghsaADVISORY
- github.com/marshmallow-code/apispec/issues/278nvdThird Party AdvisoryWEB
- github.com/yaml/pyyaml/blob/master/CHANGESnvdRelease NotesThird Party AdvisoryWEB
- github.com/yaml/pyyaml/issues/193nvdThird Party AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2017-18342ghsaADVISORY
- security.gentoo.org/glsa/202003-45nvdThird Party AdvisoryWEB
- github.com/pypa/advisory-database/tree/main/vulns/pyyaml/PYSEC-2018-49.yamlghsaWEB
- github.com/yaml/pyyaml/commit/7b68405c81db889f83c32846462b238ccae5be80ghsaWEB
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JEX7IPV5P2QJITAMA5Z63GQCZA5I6NVZghsaWEB
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KSQQMRUQSXBSUXLCRD3TSZYQ7SEZRKCEghsaWEB
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/M6JCFGEIEOFMWWIXGHSELMKQDD4CV2BAghsaWEB
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JEX7IPV5P2QJITAMA5Z63GQCZA5I6NVZ/nvd
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KSQQMRUQSXBSUXLCRD3TSZYQ7SEZRKCE/nvd
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/M6JCFGEIEOFMWWIXGHSELMKQDD4CV2BA/nvd
News mentions
0No linked articles in our index yet.