VDB
Sign up
—

PYSEC-2021-142

Quick fix

PYSEC-2021-142 — pyyaml: upgrade to the fixed version with the command below.

pip install --upgrade 'pyyaml>=5.4'

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/pyyaml
Introduced in: 0Fixed in: 5.4
Fixpip install --upgrade 'pyyaml>=5.4'

References