CVE-2019-20477Pyyaml
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
- 5.1% probability of exploitation in 30 days · percentile 93
- Auth required
- No
- Published
- Feb 19, 2020
- 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
PyYAML 5.1 through 5.1.2 has insufficient restrictions on the load and load_all functions because of a class deserialization issue, e.g., Popen is a class in the subprocess module. NOTE: this issue exists because of an incomplete fix for CVE-2017-18342.
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.2 |
5.2 |
pip install "pyyaml>=5.2" |
| PyPI | pyyaml |
≥ 5.1 < 5.2b1 |
5.2b1 |
pip install "pyyaml>=5.2b1" |
Per OSV / GitHub Advisories (GHSA-3pqx-4fqf-j49f, PYSEC-2020-176). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| pyyaml | pyyaml | ≥ 5.1 ≤ 5.1.2 |
| fedoraproject | fedora | 30 |
| fedoraproject | fedora | 31 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Release Notes Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- www.exploit-db.com Exploit Third Party Advisory VDB Entry