Back
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…
Critical9.8EPSS 5.6%
- Published
- Updated
- Reserved
- Assigned by
- mitre
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.
Timeline
ID reserved
By mitre
Published
- 6 years later
· 6 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 5.6% · top 7.1% of all CVEs (8 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.8.
Weakness
Affected products
n/a
- affected n/a
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- PyPIPyYAMLGHSA-rprw-h62v-c2w7 (opens in a new tab)
References (9)
- https://github.com/yaml/pyyaml/pull/74 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/yaml/pyyaml/blob/master/CHANGES (opens in a new tab)x_refsource_MISCx_transferred
- FEDORA-2019-bed9afe622 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- FEDORA-2019-779a9db46a (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- FEDORA-2019-44643e8bcb (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- https://github.com/marshmallow-code/apispec/issues/278 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/yaml/pyyaml/issues/193 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load%28input%29-Deprecation (opens in a new tab)x_refsource_MISCx_transferred
- GLSA-202003-45 (opens in a new tab)vendor-advisoryx_refsource_GENTOOx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-rprw-h62v-c2w7 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2017-18342)Record last updated .