Live threats

All CVEs / Pyyaml

CVE-2017-18342Pyyaml

Critical 9.8 No auth needed

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.

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

VendorProductVersions
pyyamlpyyaml< 5.1
fedoraprojectfedora28
fedoraprojectfedora29
fedoraprojectfedora30

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.