Live threats

All CVEs / Pyyaml

CVE-2019-20477Pyyaml

Critical 9.8 No auth needed

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.

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.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)

VendorProductVersions
pyyamlpyyaml≥ 5.1 ≤ 5.1.2
fedoraprojectfedora30
fedoraprojectfedora31

Official sources

References

Links published by the sources. Open them with care.