Deserialization in Pyyaml
CVE-2017-18342
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.
Vulnerability class: Insecure Deserialization
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.056, 93.0th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Pyyaml
- Fedoraproject Fedora — versions 28, 29, 30
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 24 other repositories (40docs/lab_forticnapp_code_security, amakhu/cdp, ARPSyndicate/cvemon, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/yaml/pyyaml/pull/74 (Patch, Third Party Advisory)
- github.com/yaml/pyyaml/blob/master/CHANGES (Third Party Advisory, Release Notes)
- FEDORA-2019-bed9afe622 (vendor-advisory)
- FEDORA-2019-779a9db46a (vendor-advisory)
- FEDORA-2019-44643e8bcb (vendor-advisory)
- github.com/marshmallow-code/apispec/issues/278 (Third Party Advisory)
- github.com/yaml/pyyaml/issues/193 (Third Party Advisory)
- github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation
- GLSA-202003-45 (vendor-advisory, Third Party Advisory)