CVE-2017-18342Pyyaml
Critical 9.8 No auth needed
Follow: this CVE · Pyyaml · Pyyaml We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 4.8% probability of exploitation in 30 days · percentile 93
- Auth required
- No
- Published
- Jun 27, 2018
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-502
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Pyyaml.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | pyyaml |
< 5.1 |
5.1 |
pip install "pyyaml>=5.1" |
| PyPI | pyyaml |
< 5.1 |
5.1 |
pip install "pyyaml>=5.1" |
Per OSV / GitHub Advisories (GHSA-rprw-h62v-c2w7, PYSEC-2018-49). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| pyyaml | pyyaml | < 5.1 |
| fedoraproject | fedora | 28 |
| fedoraproject | fedora | 29 |
| fedoraproject | fedora | 30 |
Official advisories
- python313-PyYAML-6.0.3-1.6 on GA media · SUSE · openSUSE-SU-2026:11996-1 · Oct 4, 2026 Critical
- python313-openapi-spec-validator-0.9.0-1.1 on GA media · SUSE · openSUSE-SU-2026:11192-1 · Jul 6, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Third Party Advisory
- github.com Patch Third Party Advisory
- github.com
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- security.gentoo.org Third Party Advisory