{"id":"UBUNTU-CVE-2017-18342","details":"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.","modified":"2025-10-24T04:46:40Z","published":"2018-06-27T12:29:00Z","upstream":["CVE-2017-18342"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2017-18342"},{"type":"REPORT","url":"https://github.com/yaml/pyyaml/pull/74"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2017-18342"}],"affected":[{"package":{"name":"pyyaml","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/pyyaml@3.10-4ubuntu0.1?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.10-4build2","3.10-4build3","3.10-4build4","3.10-4ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_name":"python-yaml","binary_version":"3.10-4ubuntu0.1"},{"binary_name":"python3-yaml","binary_version":"3.10-4ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-18342.json"}},{"package":{"name":"pyyaml","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/pyyaml@3.11-3build1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.11-2build1","3.11-3","3.11-3build1"],"ecosystem_specific":{"binaries":[{"binary_name":"python-yaml","binary_version":"3.11-3build1"},{"binary_name":"python3-yaml","binary_version":"3.11-3build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-18342.json"}},{"package":{"name":"pyyaml","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/pyyaml@3.12-1build2?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.12-1build2"],"ecosystem_specific":{"binaries":[{"binary_name":"python-yaml","binary_version":"3.12-1build2"},{"binary_name":"python3-yaml","binary_version":"3.12-1build2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-18342.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"low"}]}