CVE-2017-18342
PyYAML Arbitrary Code Execution Vulnerability
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.
INFO
Published Date :
June 27, 2018, 12:29 p.m.
Last Modified :
Nov. 7, 2023, 2:41 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.9
Exploitability Score :
3.9
Public PoC/Exploit Available at Github
CVE-2017-18342 has a 9 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2017-18342
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Semgrep rules filtered just to those with interfile. Updated as of last commit date
None
Shell Python JavaScript Jinja
None
Makefile Shell Python Dockerfile HTML CSS
Beginners technical talk with examples on the different data types for cross language/platform communication
Python
Distributed HTTP load testing platform on AWS, based on https://locust.io/.
Makefile Ruby Python
A collection of pre-commit hooks I use in most of my repositories.
pre-commit
Shell Python
intercom_test
Python
GRPC deployment server sandbox project
Python Shell
Simiki is a simple wiki framework, written in Python.
wiki python static-site-generator lightweight tool
Shell Python HTML Makefile CSS Dockerfile
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2017-18342
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2017-18342
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Nov. 07, 2023
Action Type Old Value New Value Added Reference MITRE https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/M6JCFGEIEOFMWWIXGHSELMKQDD4CV2BA/ [No types assigned] Added Reference MITRE https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KSQQMRUQSXBSUXLCRD3TSZYQ7SEZRKCE/ [No types assigned] Added Reference MITRE https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JEX7IPV5P2QJITAMA5Z63GQCZA5I6NVZ/ [No types assigned] Added Reference MITRE https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load%28input%29-Deprecation [No types assigned] Removed Reference MITRE https://lists.fedoraproject.org/archives/list/[email protected]/message/M6JCFGEIEOFMWWIXGHSELMKQDD4CV2BA/ Removed Reference MITRE https://lists.fedoraproject.org/archives/list/[email protected]/message/KSQQMRUQSXBSUXLCRD3TSZYQ7SEZRKCE/ Removed Reference MITRE https://lists.fedoraproject.org/archives/list/[email protected]/message/JEX7IPV5P2QJITAMA5Z63GQCZA5I6NVZ/ Removed Reference MITRE https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation -
Modified Analysis by [email protected]
Oct. 14, 2020
Action Type Old Value New Value Removed CVSS V3 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://github.com/marshmallow-code/apispec/issues/278 No Types Assigned https://github.com/marshmallow-code/apispec/issues/278 Third Party Advisory Changed Reference Type https://github.com/yaml/pyyaml/issues/193 No Types Assigned https://github.com/yaml/pyyaml/issues/193 Third Party Advisory Changed Reference Type https://github.com/yaml/pyyaml/pull/74 Third Party Advisory https://github.com/yaml/pyyaml/pull/74 Patch, Third Party Advisory Changed Reference Type https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation No Types Assigned https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation Third Party Advisory Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/JEX7IPV5P2QJITAMA5Z63GQCZA5I6NVZ/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/JEX7IPV5P2QJITAMA5Z63GQCZA5I6NVZ/ Third Party Advisory Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/KSQQMRUQSXBSUXLCRD3TSZYQ7SEZRKCE/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/KSQQMRUQSXBSUXLCRD3TSZYQ7SEZRKCE/ Third Party Advisory Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/M6JCFGEIEOFMWWIXGHSELMKQDD4CV2BA/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/M6JCFGEIEOFMWWIXGHSELMKQDD4CV2BA/ Third Party Advisory Changed Reference Type https://security.gentoo.org/glsa/202003-45 No Types Assigned https://security.gentoo.org/glsa/202003-45 Third Party Advisory Removed CWE NIST CWE-20 Added CWE NIST CWE-502 Changed CPE Configuration OR *cpe:2.3:a:pyyaml:pyyaml:*:*:*:*:*:*:*:* OR *cpe:2.3:a:pyyaml:pyyaml:*:*:*:*:*:*:*:* versions up to (excluding) 5.1 Added CPE Configuration OR *cpe:2.3:o:fedoraproject:fedora:28:*:*:*:*:*:*:* *cpe:2.3:o:fedoraproject:fedora:29:*:*:*:*:*:*:* *cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:* -
CPE Deprecation Remap by [email protected]
May. 28, 2020
Action Type Old Value New Value Changed CPE Configuration OR *cpe:2.3:a:pyyaml_project:pyyaml:*:*:*:*:*:*:*:* OR *cpe:2.3:a:pyyaml:pyyaml:*:*:*:*:*:*:*:* -
CVE Modified by [email protected]
Mar. 19, 2020
Action Type Old Value New Value Added Reference https://security.gentoo.org/glsa/202003-45 [No Types Assigned] -
CVE Modified by [email protected]
Jun. 24, 2019
Action Type Old Value New Value Changed Description In PyYAML before 4.1, the yaml.load() API could execute arbitrary code. In other words, yaml.safe_load is not used. 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. Added Reference https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation [No Types Assigned] Added Reference https://github.com/marshmallow-code/apispec/issues/278 [No Types Assigned] Added Reference https://github.com/yaml/pyyaml/issues/193 [No Types Assigned] -
CVE Modified by [email protected]
Mar. 30, 2019
Action Type Old Value New Value Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/JEX7IPV5P2QJITAMA5Z63GQCZA5I6NVZ/ [No Types Assigned] -
CVE Modified by [email protected]
Mar. 23, 2019
Action Type Old Value New Value Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/KSQQMRUQSXBSUXLCRD3TSZYQ7SEZRKCE/ [No Types Assigned] -
CVE Modified by [email protected]
Mar. 21, 2019
Action Type Old Value New Value Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/M6JCFGEIEOFMWWIXGHSELMKQDD4CV2BA/ [No Types Assigned] -
Reanalysis by [email protected]
Jan. 17, 2019
Action Type Old Value New Value Changed CPE Configuration OR *cpe:2.3:a:pyyaml_project:pyyaml:*:*:*:*:*:*:*:* versions up to (excluding) 4.1 OR *cpe:2.3:a:pyyaml_project:pyyaml:*:*:*:*:*:*:*:* -
Initial Analysis by [email protected]
Aug. 21, 2018
Action Type Old Value New Value Added CVSS V2 (AV:N/AC:L/Au:N/C:P/I:P/A:P) Added CVSS V3 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://github.com/yaml/pyyaml/blob/master/CHANGES No Types Assigned https://github.com/yaml/pyyaml/blob/master/CHANGES Release Notes, Third Party Advisory Changed Reference Type https://github.com/yaml/pyyaml/pull/74 No Types Assigned https://github.com/yaml/pyyaml/pull/74 Third Party Advisory Added CWE CWE-20 Added CPE Configuration OR *cpe:2.3:a:pyyaml_project:pyyaml:*:*:*:*:*:*:*:* versions up to (excluding) 4.1
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2017-18342
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2017-18342
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
1.42 }} -0.02%
score
0.86528
percentile