CVE-2020-1747Pyyaml
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.7% probability of exploitation in 30 days · percentile 93
- Auth required
- No
- Published
- Mar 24, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-20
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
A vulnerability was discovered in the PyYAML library in versions before 5.3.1, where it is susceptible to arbitrary code execution when it processes untrusted YAML files through the full_load method or with the FullLoader loader. Applications that use the library to process untrusted input may be vulnerable to this flaw. An attacker could use this flaw to execute arbitrary code on the system by abusing the python/object/new constructor.
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.1b7 < 5.3.1 |
5.3.1 |
pip install "pyyaml>=5.3.1" |
| PyPI | pyyaml |
≥ 5.1 < 5.3.1 |
5.3.1 |
pip install "pyyaml>=5.3.1" |
Per OSV / GitHub Advisories (GHSA-6757-jp84-gxfx, PYSEC-2020-96). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| pyyaml | pyyaml | ≥ 5.1 < 5.3.1 |
| fedoraproject | fedora | 30 |
| fedoraproject | fedora | 31 |
| fedoraproject | fedora | 32 |
| fedoraproject | fedora | 33 |
| opensuse | leap | 15.1 |
| oracle | communications_cloud_native_core_network_function_cloud_native_environment | 22.1.0 |
Official sources
References
Links published by the sources. Open them with care.
- lists.opensuse.org Mailing List Third Party Advisory
- lists.opensuse.org Mailing List Third Party Advisory
- bugzilla.redhat.com Issue Tracking Patch Third Party Advisory
- github.com Patch Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- www.oracle.com Patch Third Party Advisory