VDB

CVE-2017-18342

CVE-2017-18342 PUBLISHED CVSS 9.800000190734863 CRITICAL

PyYAML insecurely deserializes YAML strings leading to arbitrary code execution

Reported by mitre · Published June 27, 2018

PyYAML is fixed in 5.1.0, 5.1 and 4.1 (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
PyYAMLPyPI5.1.0, 5.1, 4.1
pyyamlpyyaml5.1

Risk scores

CVSS 3.1
9.800000190734863
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
n/an/an/a
PyPIPyYAML0
n/an/a*
archpython-yaml0

Timeline

  • Jun 27, 2018 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Nov 21, 2024 CVE Updated
  • May 14, 2025 PoC Published (2 in total, the first dated here)
  • Mar 9, 2026 Security Advisory (2 in total, the first dated here)
  • Oct 1, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2017-18342
vulnetix vdb fixes CVE-2017-18342

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2017-18342/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›