CVE-2017-18342: In PyYAML before 5.1, the yaml.load() API could execute arbitrary code if used with untrusted data
CVE-2017-18342 is a critical-severity flaw (CVSS 9.8) affecting pyyaml, fedora. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Critical severity
- EPSS top 7%: very likely to be exploited
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 5.7% (top 7%) |
| CISA exploited list | No |
| Weakness | CWE-502 |
| Published | 2018-06-27 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2017-18342?
pyyaml: upgrade to 5.1; fedora: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2017-18342 being exploited?
CVE-2017-18342 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2017-18342 affect?
CVE-2017-18342 affects pyyaml, fedora. Severity is critical (CVSS 9.8). 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 functi
How urgent is CVE-2017-18342?
Priority 63/100. Critical severity; EPSS top 7%: very likely to be exploited; Remotely exploitable, no login, no user action
Related CVEs
- CVE-2020-1747 CRITICAL 9.8 UPGRADE MITIGATE A vulnerability was discovered in the PyYAML library in versions before 5.3.1, where it is susceptible to arbi
- CVE-2020-14343 CRITICAL 9.8 UPGRADE DOWNGRADE A vulnerability was discovered in the PyYAML library in versions before 5.4, where it is susceptible to arbitr
- CVE-2019-20477 CRITICAL 9.8 UPGRADE MITIGATE PyYAML 5.1 through 5.1.2 has insufficient restrictions on the load and load_all functions because of a class d