VDB

PYSEC-2021-142

PYSEC-2021-142 PUBLISHED CVSS 9.300000190734863 CRITICAL

Record from OSV · Published February 9, 2021

pyyaml is fixed in 5.4 (PyPI)

A vulnerability was discovered in the PyYAML library in versions before 5.4, 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. This flaw allows an attacker to execute arbitrary code on the system by abusing the python/object/new constructor. This flaw is due to an incomplete fix for CVE-2020-1747.

Fixed versions

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

PackageEcosystemFixed in
pyyamlPyPI5.4

Risk scores

CVSS 4.0
9.300000190734863
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Affected products

VendorProductVersions
PyPIpyyaml4.2b1, 0, 3.01

Timeline

  • Feb 9, 2021 CVE Published
  • Nov 8, 2023 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln PYSEC-2021-142
vulnetix vdb fixes PYSEC-2021-142

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/PYSEC-2021-142/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 ›