Live threats

All CVEs / Pyyaml

CVE-2020-1747Pyyaml

Critical 9.8 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Pyyaml.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
pyyamlpyyaml≥ 5.1 < 5.3.1
fedoraprojectfedora30
fedoraprojectfedora31
fedoraprojectfedora32
fedoraprojectfedora33
opensuseleap15.1
oraclecommunications_cloud_native_core_network_function_cloud_native_environment22.1.0

Official sources

References

Links published by the sources. Open them with care.